cranmirrors: CRAN archive (CRAN-archive.html + archivedb)

cranmirrorsR Documentation

CRAN archive (CRAN-archive.html + archivedb)

Description

cranmirrors_down downloads the csv file of CRAN mirrors, modifies the "Maintainer" and "Host" columns, eventually saves the modified data.frame on the disk, loads this data.frame in .GlobalEnv and prints in the console a subset of the data.frame made of the selected columns.

Usage

cranmirrors_down(filename = "CRAN-mirrors1.csv", dir = ".",
  columns = c(1, 3, 7), save = FALSE,
  url = "https://cran.r-project.org/CRAN_mirrors.csv")

Arguments

filename

character. The path to file "CRAN-mirrors1.csv" (or equivalent).

dir

character. The directory where filename is saved. Default value "." is the current directory.

columns

a vector of integers or a vector of names. The column numbers or the column names. Allowed numbers are within 1:9. Allowed names are: "Name", "Country", "City", "URL", "Host", "Maintainer", "OK", "CountryCode" and "Comment".

save

logical. Save the file. If FALSE, the default, the file is just loaded in .GlobalEnv and a subset is printed in the console.

url

character. The url address of the CRAN csv file.

Examples

cranmirrors_down(dir = file.path(tempdir(), "cranmirrors"), save = TRUE)


RWsearch documentation built on May 29, 2024, 6:42 a.m.