Package 'mirrorselect'

Title: Test CRAN/Bioconductor Mirror Speed
Description: Testing CRAN and Bioconductor mirror speed by recording download time of 'src/base/COPYING' (for CRAN) and 'packages/release/bioc/html/ggtree.html' (for Bioconductor).
Authors: Guangchuang Yu [aut, cre]
Maintainer: Guangchuang Yu <[email protected]>
License: Artistic-2.0
Version: 0.0.3
Built: 2024-10-29 04:46:09 UTC
Source: https://github.com/yulab-smu/mirrorselect

Help Index


get_mirror

Description

Access CRAN or Bioconductor mirror

Usage

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

Arguments

repo

one of 'CRAN' or 'BioC'

country

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

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.

Value

a vector of mirror urls

Author(s)

Guangchuang Yu

Examples

head(get_mirror())

mirrorselect

Description

test download speed of CRAN mirrors by recording download time for mirror/src/base/COPYING

Usage

mirrorselect(mirrors)

Arguments

mirrors

a vector of CRAN mirrors

Value

data frame with a column of mirror and second column of speed

Author(s)

Guangchuang Yu

Examples

m <- c("https://cloud.r-project.org/", 
       "https://cran.ms.unimelb.edu.au/")

if (yulab.utils::has_internet()) {
    x <- mirrorselect(m)
    head(x)
}