neuro_install {neurocInstall} | R Documentation |
Neuroconductor Installer
Description
Install function for neuroconductor packages
Usage
neuro_install(
repo,
release = c("stable", "current"),
release_repo = latest_neuroc_release(),
upgrade_dependencies = FALSE,
type = getOption("pkgType"),
...
)
neuroc_install(...)
neurocLite(...)
Arguments
repo |
Package name in neuroconductor |
release |
Stable or current (development) versions/branches |
release_repo |
Repository for release repository, passed to
|
upgrade_dependencies |
Should dependencies be updated?
passed to |
type |
character, indicating the type of package to download and
install, passed to |
... |
additional arguments passed to
|
Value
Result from install.packages
or
install_github
Examples
tlib = tempfile()
dir.create(tlib, showWarnings = FALSE)
system.time({
install.packages("oro.asl",
lib = tlib,
repos = "https://neuroconductor.org/releases/2019/12/")
})
repos = getOption("repos")
print(repos)
#if (repos["CRAN"] == "@CRAN@") {
# repos["CRAN"] = "https://cloud.r-project.org"
# options(repos = repos)
#}
options(repos = NULL)
print(getOption("repos"))
neuro_install("oro.asl", lib = tlib,
release_repo = "https://neuroconductor.org/releases/2019/12")
options(repos = repos)
neuro_install("cifti", type = "source", lib = tlib)
neuro_install("cifti",
release_repo = latest_neuroc_release("stable"),
lib = tlib)
neuro_install("cifti", release_repo = "github")
[Package neurocInstall version 0.12.0 Index]