data(fileIndex)
data(metaIndex)
data(geoIndex)
head(fileIndex)
head(metaIndex)
head(geoIndex)
# in functions, you can use head(rdwd:::fileIndex) etc, but I don't export them
# because Hadley says 'Never @export a data set' in
# browseURL("http://r-pkgs.had.co.nz/data.html#data-data")
if (FALSE) # Excluded from CRAN checks to avoid file creation
# To use a custom index, since especially gridfiles names are updated daily:
# library(rdwd)
customFolders <- c("monthly/air_temperature_mean","daily/Project_TRY/pressure")
customFiles <- indexFTP(customFolders, base=gridbase, dir=tempdir())
customIndex<- createIndex(customFiles, dir=tempdir())
browseURL("https://bookdown.org/brry/rdwd/fileindex.html")
Run the code above in your browser using DataLab