Note that these extra registrations will be downloaded to a standard location on your hard drive that will be used for one session to the next. See examples and local_reg_dir_for_url.

download_reg_repo(url, localdir = NULL, ...)

Arguments

url

Location of one or more remote git repositories. Can accept partial github specifications of the form "<user>/<repo>".

localdir

Full path to local checkout location of git repository. When localdir=NULL, the default, a sensible location is chosen using the rappdirs function.

...

additional arguments passed to git2r::clone e.g. credentials for private repo.

Value

This function is principally called for its side effect. A path to the location on disk containing added registrations is returned invisibly.

Examples

## find the root location of all registration directories
local_reg_dir_for_url()
#> [1] "/home/runner/.local/share/rpkg-nat.templatebrains/regfolders"
if (FALSE) {
## Add the two main jefferislab bridging and mirroring registration
# collections for Drosophila brains from github.com.
download_reg_repo("jefferislab/BridgingRegistrations")
download_reg_repo("jefferislab/MirrorRegistrations")

## update all current registration repositories
update_reg_repos()
}