Title: | Install the 'Natverse' Packages from Scratch |
---|---|
Description: | Provides streamlined installation for packages from the 'natverse', a suite of R packages for computational neuroanatomy built on top of the 'nat' 'NeuroAnatomy Toolbox' package. Installation of the complete 'natverse' suite requires a 'GitHub' user account and personal access token 'GITHUB_PAT'. 'natmanager' will help the end user set this up if necessary. |
Authors: | Sridhar Jagannathan [aut] , Gregory Jefferis [aut, cre] |
Maintainer: | Gregory Jefferis <[email protected]> |
License: | GPL-3 |
Version: | 0.5.1 |
Built: | 2024-11-22 04:52:06 UTC |
Source: | https://github.com/natverse/natmanager |
install
allows you to install one of two collections of
nat packages
core
a minimal install that can help users to get started with
nat and already solve many problems (the default)
natverse
a powerful "batteries included" distribution with all
mature packages in the natverse.
Since the natverse
option will install many packages from GitHub,
you need to have a GitHub account and personal access token (GITHUB_PAT).
Install will check to see if you have a GITHUB_PAT
already and, if
not, walk you through the steps of setting one up. A fall-back PAT is built
into the package but we strongly recommend that you sign up to GitHub and
get your own if you start using the natverse regularly.
check_pat
can be used to check if you have a GITHUB_PAT
set and will advise on how to do this if necessary.
install( collection = c("core", "natverse"), pkgs = NULL, dependencies = TRUE, upgrade.dependencies = FALSE, method = c("pak", "remotes"), ... ) check_pat(create = TRUE)
install( collection = c("core", "natverse"), pkgs = NULL, dependencies = TRUE, upgrade.dependencies = FALSE, method = c("pak", "remotes"), ... ) check_pat(create = TRUE)
collection |
The collection of natverse packages that you would like to
install. The current options are |
pkgs |
A character vector of package names specifying natverse packages
to install. When present overrides the |
dependencies |
Which dependencies you want to install. The default value
( |
upgrade.dependencies |
Whether to upgrade dependencies of requested
packages See the |
method |
Whether to use the |
... |
extra arguments to pass to |
create |
Whether to help you create a personal GITHUB_PAT if you do not
have one set. When |
check_pat
returns the PAT invisibly or errors out if
create=TRUE
and none can be set.
## Not run: # install core packages to try out the core natverse if(is.interactive()) { natmanager::install('core') } # Full "batteries included" installation with all packages if(is.interactive()) { natmanager::install('natverse') # same but upgrading all dependencies to latest version natmanager::install('natverse', upgrade.dependencies = T) } # Install natverse, non-natverse package # for natverse packages no need to specify the repo if(is.interactive()) { natmanager::install(pkgs=c('nat.jrcbrains','flyconnectome/hemibrainr')) } ## End(Not run) ## Not run: # Check status of GitHub PAT and create one if required natmanager::check_pat(create=TRUE) # Check status of GitHub PAT and use default if no personal one available natmanager::check_pat(create=FALSE) ## End(Not run)
## Not run: # install core packages to try out the core natverse if(is.interactive()) { natmanager::install('core') } # Full "batteries included" installation with all packages if(is.interactive()) { natmanager::install('natverse') # same but upgrading all dependencies to latest version natmanager::install('natverse', upgrade.dependencies = T) } # Install natverse, non-natverse package # for natverse packages no need to specify the repo if(is.interactive()) { natmanager::install(pkgs=c('nat.jrcbrains','flyconnectome/hemibrainr')) } ## End(Not run) ## Not run: # Check status of GitHub PAT and create one if required natmanager::check_pat(create=TRUE) # Check status of GitHub PAT and use default if no personal one available natmanager::check_pat(create=FALSE) ## End(Not run)
by default this will list all the repositories inside the 'natverse' organization.
list_repo(orgname = "natverse")
list_repo(orgname = "natverse")
orgname |
Name of the GitHub organization |
Character vector of repository names
## Not run: natmanager::list_repo() ## End(Not run)
## Not run: natmanager::list_repo() ## End(Not run)
Update the 'natmanager' package itself.
selfupdate( source = c("GITHUB", "CRAN"), upgrade.dependencies = TRUE, force = FALSE, method = c("pak", "remotes"), ... )
selfupdate( source = c("GITHUB", "CRAN"), upgrade.dependencies = TRUE, force = FALSE, method = c("pak", "remotes"), ... )
source |
Location from which to obtain a newer version of natmanager. Defaults to GITHUB since this may well have a newer version than the CRAN package repository. |
upgrade.dependencies |
Whether to upgrade dependencies of requested
packages See the |
force |
Force self update even if there doesn't seem to be an update
(default |
method |
Whether to use the |
... |
extra arguments to pass to |
Logical indicating whether an update was required (invisibly).
## Not run: natmanager::selfupdate() ## End(Not run)
## Not run: natmanager::selfupdate() ## End(Not run)