Title: | Test CRAN/Bioconductor Mirror Speed |
Version: | 0.0.3 |
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). |
Depends: | R (≥ 3.4.0) |
Imports: | utils, yulab.utils (≥ 0.1.7) |
License: | Artistic-2.0 |
Encoding: | UTF-8 |
RoxygenNote: | 7.3.2 |
NeedsCompilation: | no |
Packaged: | 2024-08-26 13:53:45 UTC; HUAWEI |
Author: | Guangchuang Yu |
Maintainer: | Guangchuang Yu <guangchuangyu@gmail.com> |
Repository: | CRAN |
Date/Publication: | 2024-08-29 19:10:02 UTC |
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)
}