# Not tested with R CMD check because of file writing
link <- "/daily/kl/historical/tageswerte_00699_19490101_19580630_hist.zip"
ind <- createIndex(link, dir=tempdir())
ind
link2 <- "/daily/kl/historical/KL_Tageswerte_Beschreibung_Stationen.txt"
link3 <- "/daily/kl/recent/KL_Tageswerte_Beschreibung_Stationen.txt"
ind2 <- createIndex(c(link,link2,link3), dir=tempdir(), meta=TRUE)
lapply(ind2, head)
# For real usage, see last part of
if(interactive())
browseURL("https://github.com/brry/rdwd/blob/master/R/meta.R")
# where fileIndex and metaIndex are added to the package
# Read results in later:
## files normally not yet available:
fileIndex2 <- read.table("DWDdata/fileIndex.txt", sep="\t", header=TRUE,
colClasses="character")
metaIndex2 <- read.table("DWDdata/metaIndex.txt", sep="\t", header=TRUE, as.is=TRUE)
Run the code above in your browser using DataLab