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 dat.frame in .GlobalEnv and print in the console a subset
with the selected columns.
Usage
cranmirrors_down(filename = "CRAN-mirrors1.csv", dir = ".",
columns = c(1, 3, 7), save = FALSE,
url = "ftp://cran.r-project.org/pub/R/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.