It checks the status of the configured or supplied repositories, for the specified platforms and R versions.
Usage
repo_status(
platforms = default_platforms(),
r_version = getRversion(),
bioc = TRUE,
cran_mirror = default_cran_mirror()
)Arguments
- platforms
Platforms to use, default is
default_platforms().- r_version
R version(s) to use, the default is the current R version, via
getRversion().- bioc
Whether to add the Bioconductor repositories. If you already configured them via
options(repos), then you can set this toFALSE. Seebioc_version()for the details about how pkgcache handles Bioconductor repositories.- cran_mirror
The CRAN mirror to use, see
default_cran_mirror().
Value
A data frame that has a row for every repository, on every queried platform and R version. It has these columns:
name: the name of the repository. This comes from the names of the configured repositories inoptions("repos"), or added by pkgcache. It is typicallyCRANfor CRAN, and the current Bioconductor repositories areBioCsoft,BioCann,BioCexp,BioCworkflows,BioCbooks.url: base URL of the repository.bioc_version: Bioconductor version, orNAfor non-Bioconductor repositories.username: Included if at least one repository is authenticated.NA_character_for repositories without authentication. Seerepo_auth().has_password:TRUEis the function could retrieve the password for the authenticated repository. It isNAfor repositories without authentication. This column is included only if at least one repository has authentication. Seerepo_auth().platform: platform, seedefault_platforms()for possible values.path: the path to the packages within the base URL, for a given platform and R version.r_version: R version, one of the specified R versions.ok: Logical flag, whether the repository contains a metadata file for the given platform and R version.ping: HTTP response time of the repository in seconds. If theokcolumn isFALSE, then this columns inNA.error: the error object if the HTTP query failed for this repository, platform and R version.
Details
The returned data frame has a summary() method, which shows
the same information is a concise table. See examples below.
See also
Other repository functions:
repo_get()
Examples
repo_status()
#> # A data frame: 7 × 10
#> name url type bioc_version platform path r_version ok ping error
#> <chr> <chr> <chr> <chr> <chr> <chr> <chr> <lgl> <dbl> <list>
#> 1 "" http… cran… NA source src/… 4.5 TRUE 0.222 <NULL>
#> 2 "CRAN" http… cran NA source src/… 4.5 TRUE 0.217 <NULL>
#> 3 "BioCsof… http… bioc 3.22 source src/… 4.5 TRUE 0.217 <NULL>
#> 4 "BioCann" http… bioc 3.22 source src/… 4.5 TRUE 0.225 <NULL>
#> 5 "BioCexp" http… bioc 3.22 source src/… 4.5 TRUE 0.229 <NULL>
#> 6 "BioCwor… http… bioc 3.22 source src/… 4.5 TRUE 0.270 <NULL>
#> 7 "BioCboo… http… bioc 3.22 source src/… 4.5 TRUE 0.249 <NULL>
rst <- repo_status(
platforms = c("windows", "macos"),
r_version = c("4.0", "4.1")
)
summary(rst)
#> Repository summary: i386+x86_64-w64-mingw32 x86_64-apple-darwin17.0
#> @ prism.dev.a2-ai.cloud (R 4.0) ✖ ✖
#> CRAN @ cloud.r-project.org (R 4.0) ✔ ✔ (162ms)
#> @ prism.dev.a2-ai.cloud (R 4.1) ✖ ✖
#> CRAN @ cloud.r-project.org (R 4.1) ✔ ✔ (162ms)
#> BioCsoft @ bioconductor.org (R 4.0) ✔ ✔ (431ms)
#> BioCann @ bioconductor.org (R 4.0) ✔ ✔ (717ms)
#> BioCexp @ bioconductor.org (R 4.0) ✔ ✔ (678ms)
#> BioCworkflows @ bioconductor.org (R 4.0) ✔ ✔ (730ms)
#> BioCbooks @ bioconductor.org (R 4.0) ✔ ✔ (403ms)
#> BioCsoft @ bioconductor.org (R 4.1) ✔ ✔ (537ms)
#> BioCann @ bioconductor.org (R 4.1) ✔ ✔ (551ms)
#> BioCexp @ bioconductor.org (R 4.1) ✔ ✔ (678ms)
#> BioCworkflows @ bioconductor.org (R 4.1) ✔ ✔ (703ms)
#> BioCbooks @ bioconductor.org (R 4.1) ✔ ✔ (401ms)