Description Usage Arguments Value Examples
View source: R/neuro_install.R
Install function for neuroconductor packages
1 2 3 4 5 6 7 8 9 10 11 12 | neuro_install(
repo,
release = c("stable", "current"),
release_repo = latest_neuroc_release(),
upgrade_dependencies = FALSE,
type = getOption("pkgType"),
...
)
neuroc_install(...)
neurocLite(...)
|
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
|
Result from install.packages
or
install_github
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | 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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.