
library(RCurl) 2011/6/2 Mauro Sznelwar <sznelwar@uol.com.br>:
Mesmo assim não deu, ele acusa agora Erro em htmlParse(getURL(dPath)) : não foi possível encontrar a função "getURL"
library(XML)
2011/6/2 Mauro Sznelwar <sznelwar@uol.com.br>:
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/pathfi..." 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
_______________________________________________ R-br mailing list R-br@listas.c3sl.ufpr.br https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br
-- Successful people ask better questions, and as a result, they get better answers. (Tony Robbins)