Estava vendo a discussão,
tentei rodar isto e não consegui, não reconhece o comando xpahApply. Tem que
chamar alguma bibliotéca para isto?
Tente assim:
dPath <-
"http://aspera.jpl.nasa.gov/download/pub/sea_surface_temperature/avhrr/pathfinder/data_v5/monthly/night/04km/1986/bsst/"
f <- xpathApply(htmlParse(getURL(dPath)), "//a",
xmlAttrs,
'href')[c(FALSE, TRUE, FALSE)]
mapply(download.file,
file.path("http://aspera.jpl.nasa.gov/",
f),
basename(unlist(f)))
mailman/listinfo/r-br