cranmirrors | R Documentation |
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.
cranmirrors_down(filename = "CRAN-mirrors1.csv", dir = ".",
columns = c(1, 3, 7), save = FALSE,
url = "https://cran.r-project.org/CRAN_mirrors.csv")
filename |
character. The path to file "CRAN-mirrors1.csv" (or equivalent). |
dir |
character. The directory where |
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 |
url |
character. The url address of the CRAN csv file. |
cranmirrors_down(dir = file.path(tempdir(), "cranmirrors"), save = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.