r - download csv from sftp server and use it as data frame -


i download csv file sftp server , use data frame.

i'm doing following:

library(rcurl)    url<-c("sftp://data.ftp.net/data.csv") x <-geturl(url, userpwd="<username>:<passwd>") writelines(x, con="data.csv"))  dataframe <- read.csv("data.csv") 

the problem when using geturl takes long read file, e.g. ,about 12+ mins read 38~mb file, when take seconds download files in other ftp clients such filezilla. drastic difference when considering case of downloading multiple files.

is there more efficient/faster way this?


Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -