Copies an URL to a given folder
rciop.copy (url, target="./", uncompress=TRUE)
url
target
uncompress
This function stages-in remote files to local folders
List with:
input <- "http://landsat.usgs.gov/documents/L7_60m20090422.tgz"
res <- rciop.copy(input, TMPDIR, uncompress=TRUE)
if (res$exit.code==0) local.url <- res$output
local.prms <- apply(as.data.frame(prm), 1, function(url) { rciop.copy(url, TMPDIR)$output })
tmp.df <- read.table(textConnection(local.prms))
Terradue