Learn R Programming

mirrorselect (version 0.0.3)

get_mirror: get_mirror

Description

Access CRAN or Bioconductor mirror

Usage

get_mirror(repo = "CRAN", country = "global")

Value

a vector of mirror urls

Arguments

repo

one of 'CRAN' or 'BioC'

country

specify the mirrors from a specific country. Default to 'global' without filtering.

Author

Guangchuang Yu

Details

The mirror lists are obtained from https://cran.r-project.org/mirrors.html (CRAN) or https://bioconductor.org/BioC_mirrors.csv (Bioconductor). This function allows user to extract mirrors from a specific country using internet country code.

Examples

Run this code
head(get_mirror())

Run the code above in your browser using DataLab