downloading files from the secure ftp server with R -
i need download files sftp server , parse them , insert contents database.
i using rcurl follows:
library(rcurl) url<-c("sftp://data.ftp.net/incomining.data.txt") x<-geturl(url, userpwd="<id>:<passwd>") writelines(x, incoming.data.txt"))
i looked @ download.file , dont see sftp sufpport in download.file. has else done similiar work this? since getting multiple files, noticed rcurl times out. sftp download files sftp server first process it. ideas?
it sounds question "how avoid timeouts in rcurl?"
increase value of curlopt_connecttimeout. same problem setting curl's timeout in php .
edit, comments below:
x<-geturl(url, userpwd="<id>:<passwd>", connecttimeout=60) // 60 seconds, e.g.
Comments
Post a Comment