如何使用 R 通过 FTP 将文件上传到服务器? [英] How to upload a file to a server via FTP using R?
本文介绍了如何使用 R 通过 FTP 将文件上传到服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用 R 通过 FTP 将文件上传到服务器?
How to upload a file to a server via FTP using R?
推荐答案
这应该可行:
library(RCurl)
ftpUpload("Localfile.html", "ftp://User:Password@FTPServer/Destination.html")
其中Localfile.html
是要上传的文件,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.
这篇关于如何使用 R 通过 FTP 将文件上传到服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文