neuro_install.RdInstall function for neuroconductor packages
neuro_install(
repo,
release = c("stable", "current"),
release_repo = latest_neuroc_release(),
upgrade_dependencies = FALSE,
type = getOption("pkgType"),
...
)
neuroc_install(...)
neurocLite(...)Package name in neuroconductor
Stable or current (development) versions/branches
Repository for release repository, passed to
install.packages. If release_repo = "github",
then it will install using GitHub. If you set this using
make_release_version or specify the URL directly,
it will override release option.
Should dependencies be updated?
passed to install if using
release_repo = "github"
character, indicating the type of package to download and
install, passed to install.packages.
additional arguments passed to
install.packages
or install_github if
release_repo = "github"
Result from install.packages or
install_github
# \donttest{
tlib = tempfile()
dir.create(tlib, showWarnings = FALSE)
system.time({
install.packages("oro.asl",
lib = tlib,
repos = "https://neuroconductor.org/releases/2019/12/",
verbose = TRUE)
})
#> system (cmd0): /opt/R/4.4.2/lib/R/bin/R CMD INSTALL
#> foundpkgs: oro.asl, /tmp/Rtmp8eq855/downloaded_packages/oro.asl_0.1.1.tar.gz
#> files: /tmp/Rtmp8eq855/downloaded_packages/oro.asl_0.1.1.tar.gz
#> 1): succeeded '/opt/R/4.4.2/lib/R/bin/R CMD INSTALL -l '/tmp/Rtmp8eq855/file76885fc464cf' '/tmp/Rtmp8eq855/downloaded_packages/oro.asl_0.1.1.tar.gz''
#> user system elapsed
#> 1.082 1.665 2.323
repos = getOption("repos")
print(repos)
#> CRAN
#> "https://cran.rstudio.com"
#if (repos["CRAN"] == "@CRAN@") {
# repos["CRAN"] = "https://cloud.r-project.org"
# options(repos = repos)
#}
options(repos = NULL)
print(getOption("repos"))
#> NULL
neuro_install("oro.asl", lib = tlib,
release_repo = "https://neuroconductor.org/releases/2019/12")
options(repos = repos)
# }
# \donttest{
options(repos = "http://cran.r-project.org")
neuro_install("cifti", type = "source", lib = tlib, verbose = TRUE)
#> system (cmd0): /opt/R/4.4.2/lib/R/bin/R CMD INSTALL
#> also installing the dependencies ‘abind’, ‘RNifti’, ‘oro.nifti’, ‘gifti’
#> foundpkgs: abind, RNifti, oro.nifti, gifti, cifti, /tmp/Rtmp8eq855/downloaded_packages/abind_1.4-8.tar.gz, /tmp/Rtmp8eq855/downloaded_packages/RNifti_1.7.0.tar.gz, /tmp/Rtmp8eq855/downloaded_packages/oro.nifti_0.11.4.tar.gz, /tmp/Rtmp8eq855/downloaded_packages/gifti_0.8.0.tar.gz, /tmp/Rtmp8eq855/downloaded_packages/cifti_0.4.6.0.tar.gz
#> files: /tmp/Rtmp8eq855/downloaded_packages/abind_1.4-8.tar.gz,
#> /tmp/Rtmp8eq855/downloaded_packages/RNifti_1.7.0.tar.gz,
#> /tmp/Rtmp8eq855/downloaded_packages/oro.nifti_0.11.4.tar.gz,
#> /tmp/Rtmp8eq855/downloaded_packages/gifti_0.8.0.tar.gz,
#> /tmp/Rtmp8eq855/downloaded_packages/cifti_0.4.6.0.tar.gz
#> 1): succeeded '/opt/R/4.4.2/lib/R/bin/R CMD INSTALL -l '/tmp/Rtmp8eq855/file76885fc464cf' '/tmp/Rtmp8eq855/downloaded_packages/abind_1.4-8.tar.gz''
#> 2): succeeded '/opt/R/4.4.2/lib/R/bin/R CMD INSTALL -l '/tmp/Rtmp8eq855/file76885fc464cf' '/tmp/Rtmp8eq855/downloaded_packages/RNifti_1.7.0.tar.gz''
#> 3): succeeded '/opt/R/4.4.2/lib/R/bin/R CMD INSTALL -l '/tmp/Rtmp8eq855/file76885fc464cf' '/tmp/Rtmp8eq855/downloaded_packages/gifti_0.8.0.tar.gz''
#> 4): succeeded '/opt/R/4.4.2/lib/R/bin/R CMD INSTALL -l '/tmp/Rtmp8eq855/file76885fc464cf' '/tmp/Rtmp8eq855/downloaded_packages/oro.nifti_0.11.4.tar.gz''
#> 5): succeeded '/opt/R/4.4.2/lib/R/bin/R CMD INSTALL -l '/tmp/Rtmp8eq855/file76885fc464cf' '/tmp/Rtmp8eq855/downloaded_packages/cifti_0.4.6.0.tar.gz''
neuro_install("cifti",
release_repo = latest_neuroc_release(),
lib = tlib)
neuro_install("cifti", release_repo = "github")
#> Using bundled GitHub PAT. Please add your own PAT using `gitcreds::gitcreds_set()`
#> Error : Failed to install 'unknown package' from GitHub:
#> HTTP error 401.
#> Bad credentials
#>
#> Rate limit remaining: 59/60
#> Rate limit reset at: 2025-02-15 00:14:00 UTC
#>
#>
#> Error in neuro_install("cifti", release_repo = "github"): object 'results' not found
# }