RStudio server is extremely slow when working on a project with git


I have been experiencing annoying lag when running any command on RStudio on our server.

This does not occur when using RStudio outside a project, or using a project without git connection.

My .git folder in the project directory is around ~7GB which might be relevant.

However, I couldn't find a solution anywhere else.


I have to believe that most of that is data. (Otherwise, that is one big codebase and a lot of revision history.) Consider creating a fresh project, copying everything over other than .git, and putting the large data objects in .gitignore. It feels like the slowness is from all the diffing.

yes, git should only track code, its not appropriate (in a standard way) for data and especially large data. though there are extensions like Git Large File Storage (

I looked further into when this happens and seems like it's not the data files (they are already in .gitingnore).
This only happens after I use some function I made with lapply.

Anyway, thank you for the help.
I will close this post.

1 Like

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.