How to upload a file to a server via FTP using R?
相关问题
- R - Quantstart: Testing Strategy on Multiple Equit
- Using predict with svyglm
- Reshape matrix by rows
- Extract P-Values from Dunnett Test into a Table by
- split data frame into two by column value [duplica
相关文章
- How to convert summary output to a data frame?
- How to plot smoother curves in R
- Paste all possible diagonals of an n*n matrix or d
- ess-rdired: I get this error “no ESS process is as
- How to use doMC under Windows or alternative paral
- dyLimit for limited time in Dygraphs
- Saving state of Shiny app to be restored later
- How to insert pictures into each individual bar in
This probably isn't the answer you're looking for, but I solve my sharing problems by moving the file to my Public dropbox folder and link to that in my R code.
My two pennies.
If you can access it from the command line, then you can do:
You could easily wrap this in an R function if you plan on doing it often.
This should work:
Where
Localfile.html
is the file to be uploaded,User
indicates the user name andPassword
the password to log into the server whileFTPServer
is a placeholder for the server name and possible path to use while last but not leastDestination.html
is an example of the name the to be uploaded file gets on the server.Your best bet may be the RCurl package. From the DESCRIPTION:
Otherwise, rethink your problem. Maybe HTTP POST will do as well. It's not 1986 anymore so you're not required to use ftp.