View source: R/installFromGitHub.R
installFromGitHub | R Documentation |
Install packages from GitHub
installFromGitHub(
repo,
tag,
branch,
lib = .libPaths()[[1L]],
reinstall = TRUE,
...
)
repo |
|
tag |
|
branch |
|
lib |
|
reinstall |
|
... |
Passthrough arguments to |
This variant doesn't require GITHUB_PAT
. If you have a GITHUB_PAT
defined, can use install()
directly instead. Intended for use inside
container images, where a PAT may not be used.
Invisible list
.
Metadata containing repo
, lib
, and whether packages were installed.
All releases JSON:
https://api.github.com/repos/:owner/:repo/releases
Latest release JSON:
https://api.github.com/repos/:owner/:repo/releases/latest
Specific release JSON (requires numeric release ID, not tag name):
https://api.github.com/repos/:owner/:repo/releases/:release_id
Specific tagged release tarball:
https://github.com/:owner/:repo/archive/:tag.tar.gz
Updated 2022-10-20.
remotes::install_github()
.
install.packages()
.
testlib <- file.path(tempdir(), "testlib")
unlink(testlib, recursive = TRUE)
out <- installFromGitHub(
repo = paste(
"acidgenomics",
"r-goalie",
sep = "/"
),
tag = "v0.5.2",
dependencies = FALSE,
lib = testlib,
reinstall = TRUE
)
print(out)
sort(list.dirs(path = testlib, full.names = FALSE, recursive = FALSE))
unlink(testlib, recursive = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.