repo_get | R Documentation |
pak uses the repos
option, see options()
. It also automatically
adds a CRAN mirror if none is set up, and the correct version of the
Bioconductor repositories. See the cran_mirror
and bioc
arguments.
repo_get(r_version = getRversion(), bioc = NULL, cran_mirror = NULL)
r_version |
R version to use to determine the correct Bioconductor
version, if |
bioc |
Whether to automatically add the Bioconductor repositories to the result. |
cran_mirror |
CRAN mirror to use. Leave it at |
repo_get()
returns the table of the currently configured repositories.
repo_get()
returns a data frame with columns:
name
: repository name. Names are informational only.
url
: repository URL.
type
: repository type. This is also informational, currently it
can be cran
for CRAN, bioc
for a Bioconductor repository, and
cranlike
: for other repositories.
r_version
: R version that is supposed to be used with this
repository. This is only set for Bioconductor repositories. It is *
for others. This is also informational, and not used when retrieving
the package metadata.
bioc_version
: Bioconductor version. Only set for Bioconductor
repositories, and it is NA
for others.
username
: user name, for authenticated repositories.
has_password
: whether repo_get()
could find the password for
this repository. Call repo_auth()
for more information if the
credential lookup failed.
repo_get()
#> # A data frame: 6 × 5 #> name url type r_version bioc_version #> * <chr> <chr> <chr> <chr> <chr> #> 1 CRAN https://cloud.r-project.org cran * NA #> 2 BioCsoft https://bioconductor.org/p… bioc 4.4.2 3.20 #> 3 BioCann https://bioconductor.org/p… bioc 4.4.2 3.20 #> 4 BioCexp https://bioconductor.org/p… bioc 4.4.2 3.20 #> 5 BioCworkflows https://bioconductor.org/p… bioc 4.4.2 3.20 #> 6 BioCbooks https://bioconductor.org/p… bioc 4.4.2 3.20
Other repository functions:
repo_add()
,
repo_status()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.