Project won't open, stuck in infinite initialisation loop

An RStudio Cloud (free version) project will not open.
Upon trying to open it, a popup box appears with the message:

Project "/cloud/project/project.Rproj" could not be opened: file line number 2 is invalid.

There is an "ok" button in that pop-up box. If "ok" is pressed, or not, the Project session tries to restarts, at which point the pop up occurs again, ad infinitum.

  • I have tried to relaunch the project. That did not make a difference.
  • I have deleted the project, and then move it back from trash. That did not make a difference.

Ultimately, I just need to save the files in the project, but given that the RStudio session won't even start, I can't access the files in the File pane to download them.

I hoped there might be some way to access the files on the Linux file system. For example, if I open another project, I can access the Linux terminal and can cd, ls and even use scp. This would allow me to scp the files elsewhere, if only I could access them. However, it appears the files from one project are not accessible from the terminal of another project. I.e. the only R files accessible are in /cloud/project, but that is for the present project, and other projects I own are not accesible. I presume that there's one Linux virtual OS for each RStudio project.

My questions:

  • Has anyone else encountered this problem and if so, is there a way to solve this infinite initialisation loop?
  • If not, is there any way I can copy the files from one RStudio Cloud project without actually opening up that project?

p.s This project was shared with me by a student who encountered the same problem. Here is a screenshot of what it was like for him, which is exactly how it was for me.


Take a look at this related post:

Hope this helps,

In the thread suggested by @pieterjanvc, the suggestion is to open the .Rproj file to see what the problem is and fix it if possible. I can't even get that far. I can't open any file. The RStudio session does not start: The popup error occurs, it attempts to restart, the popup occurs again, and it attempts to restart again, and so on. There's no means to open a file.


Is this still an issue? If so, can you share the id for your project? I can take a look.


Hi @samp, Yes, it is still an issue.
Here is the project URL (it was shared with me by a student in my statistics class):

thanks a lot,

Looks like your project.Rproj file was overwritten with an R script at some point. I've repaired the file (and moved the old contents in project.Rproj.old.

Let me know if you still have trouble with that project.


1 Like

Hi @samp, Fantastic! Thank you so much for the help.

This topic was automatically closed 7 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.