5

I work on a R Studio Server and I want to upload a file to the Server. I know how to do this by clicking on the upload button.

https://support.rstudio.com/hc/en-us/articles/200713893-Uploading-and-Downloading-Files

1.Switch to the Files pane

2.Navigate to the directory you wish to upload files into

3.Click the Upload toolbar button

4.Choose the file you wish to upload and press OK

Is there a way to do this with code?

MatzeKnop
  • 163
  • 1
  • 8
  • 1
    Did you ever find the answer to this question? I have the same question and would be very curious to know the answer. – Willy May 21 '20 at 05:41
  • Same question here. Answer is very welcome! – rdatasculptor Sep 27 '20 at 06:20
  • Already a while since the question was asked. I didn't find a solution in R to do this. In the end we used Winscp like you can see in the small example. Not that handy but it helped us to exchange data between the server and our file system automatically. P:\HV\Programs\WinSCP.exe /log=H:\tmp\winscp.log /command "open sftp://user:passwd@IP/" "get /data/R/example.csv H:\tmp\" "exit" – MatzeKnop Apr 29 '21 at 11:51

0 Answers0