You could use RCurl
#https://cran.r-project.org/web/packages/RCurl/RCurl.pdf
library(RCurl)
# Get Example
uris = c("http://www.omegahat.net/RCurl/index.html", "http://www.omegahat.net/RCurl/philosophy.xml")
txt = getURIAsynchronous(uris)
# FTP Upload
ftpUpload(I("Some text to be uploaded into a file\nwith several lines"),
"ftp://login:password@laptop17/ftp/zoe", ) ftpUpload(I("Some text to be uploaded into a file\nwith several lines"),
"ftp://laptop17/ftp/zoe", userpwd = "login:password" ) ftpUpload(system.file("examples", "system.png", package = "RCurl"),
"ftp://login:password@laptop17/ftp/Election.rda", postquote = c("CWD subdir", "RNFR Election.rda", "RNTO ElectionPolls.rda") )