jacobkap/crimebythenumbers

RStudio Cloud crashing

Closed this issue · 9 comments

Hi, I'm excited to use your book for a class I'm teaching at Drexel this spring. We are using RStudio Cloud and I want to load the first dataset you use as an example. Here is the code shr <- readRDS("/cloud/project/shr_1976_2020.rds")

This may not be an issue you want to troubleshoot - I can also ask the R community, but if you have an idea it'd appreciate hearing it.

Can you attach a screenshot of the code and error message?

I meant to say that this isn't a problem when I am using Rstudio desktop.

I don't see a screenshot. I think you responded directly through email instead of through GitHub which must have not attached the image.

I'm getting two different errors. I've attached the screenshots.)

r issues

Screenshot (3)

Interesting. Two questions: is it just shr.rds that has an issue (do other files open right)? and does it work when you go to the working directory with the file in it before trying to load it?

Hmm, may be a memory issue if it can read small files but not large ones. For the csv files you need to click the "Raw" button on the data page and it'll go to a page that just shows the data (e.g. https://raw.githubusercontent.com/jacobkap/crimebythenumbers/master/data/fatal-police-shootings-data.csv). And then right-click and Save As a text file and it'll download to your computer as a .csv file. That's how it works on a Windows machine, not sure about Mac.