RStudio Cloud not importing from anywhere, including local C drive, website, GitHub. Will RStudio Cloud please fix this issue?

**ERROR in reading a github file:**
> deck<-read.csv("")
Error in file(file, "rt") : 
  cannot open the connection to ''
In addition: Warning message:
In file(file, "rt") :
  cannot open URL '': HTTP status was '404 Not Found'

**ERROR in reading a local file:**
> deck<-read.csv("C://Users/DZhao-Siegel/deck.csv")
Error in file(file, "rt") : cannot open the connection
In addition: Warning message:
In file(file, "rt") :
  cannot open file 'C://Users/DZhao-Siegel/deck.csv': No such file or directory

Rstudio cloud only has direct access to its own filesystem, not your local machines c:, and not the internet.
However, for downloading an available resource from the internet you can tell R that what you want comes from a url by wrapping with url()


this would work if the csv was available at the url; it isn't available for me, its probably a private i.e. non-public file.
Here is an example of some csv I found that is publicly available


Note that I've found that typically I need to view a csv in 'raw' mode on github in order to get an appropriate link to pass to R etc.

Thank you so much for the quick reply! You are correct, the DECK.CSV url (given by a tutorial) may be too old and it is not working. Your TEST.CSV url works.

So I will not be able to get Rstudio Cloud to exchange files with my local C drive, which is ok and I will make a github folder for that purpose.


a github will be very convenient. especially for long term holding of small data.
rstudio cloud can have access to your local system indirectly through interaction with your browser.
To use that approach, look for the RStudio IDE's Files pane which is usually in the lower right corner, this is a view onto the rstudio cloud file system but does feature an orange upload button you can use to send files into Rstudio cloud

Thank you again for more guidance.

If I want just use RStudio Cloud platform without downloading RStudio on my laptop, will l be able to access the IDE Files pane as you discussed here?

Rstudio cloud has the same pane yes, thats what i was trying to describe

Finally, I got it! It is under FILES dropdown in Environment pane where you will find the UPLOAD option!

It's a great day with R Cloud today :grinning:


From this screen, I cannot access files on my pc. Just those already in RStudio cloud.
Is there a direct way to upload these files?

You have to click on "Choose Files" to see your local files, not on "Browse" which is for selecting the destination directory.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.