How to upload a file to a server via FTP using R?

前端 未结 4 1170
谎友^
谎友^ 2020-12-09 11:58

How to upload a file to a server via FTP using R?

4条回答
  •  醉梦人生
    2020-12-09 12:26

    This should work:

    library(RCurl)
    ftpUpload("Localfile.html", "ftp://User:Password@FTPServer/Destination.html")
    

    Where Localfile.html is the file to be uploaded, User indicates the user name and Password the password to log into the server while FTPServer is a placeholder for the server name and possible path to use while last but not least Destination.html is an example of the name the to be uploaded file gets on the server.

提交回复
热议问题