I have recently experienced a serious problem with Rstudio when developing a package. Whenever, I open an existing project with Rstudio where versions are controlled with Git, it takes so long for it to respond to any command. It is also impossible to type something in the console (e.g. 1+1) and obtain the result. Even quitting the Rstudio, should be done with task manager. There is no problem when I create a new project / package or when I open directly a R script.
This problem appears both when the project is saved on a dropbox or on a local repository.
To overcome this issue everytime I need to modify my code, I create a new project, and then I move toward the new repository all my current R scripts and the folder ".git".
I would appreciate if anybody could help me with this issue.
If you're working with a lot of data, and you have data frames of multiple gigabytes, starting RStudio can take minutes. Here's what you can do to prevent it. Besides starting up, If you want to speed up shutting down RStudio too, set “Save workspace to . RData on exit” to Never.
Beyond performance limitations due to design and implementation, it has to be said that a lot of R code is slow simply because it's poorly written. Few R users have any formal training in programming or software development. Fewer still write R code for a living.
You should then include a file argument that has the file name or file path you want to save the data set to. Saving your data as an R file offers some advantages over saving your data as a plain-text file. R automatically compresses the file and will also save any R-related metadata associated with your object.
You can create an R data file from within R (not just RStudio) using the save() command and later load them back into your workspace with load() . You can save all the objects in your workspace ( save. image does this automatically - it's a wrapper around save() ) or only specific objects.
I had a similar problem to yours. Changing the attribute of my .git folder into hidden
solved my problem.
We recently discovered an issue where projects using git for version control could become laggy / unusable on Windows if the .git folder within the project had become a non-hidden directory.
https://github.com/rstudio/rstudio/issues/1918
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With