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

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -