RStudio lagging when in a .git controlled project

Dear Rstudio Community,

My RStudio is very slow when I am in a project that is Git controlled. When I am in a project without Git control, there is no slow-down.

To try fix this, I have reinstalled RStudio and Git. However, this has not helped.

I know some graphics drivers may cause this issue (e.g., https://github.com/eco-data-science/eco-data-science.github.io/issues/39), but I am on integrated graphics.
I am also not in a network drive (RStudio Desktop slow and laggy when project is on a network drive).
The Git file is also hidden (RStudio suddenly slow processing).

My sessionInfo() is below:

R version 3.5.2 (2018-12-20)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1

Matrix products: default

locale:
[1] LC_COLLATE=English_Australia.1252  LC_CTYPE=English_Australia.1252    LC_MONETARY=English_Australia.1252
[4] LC_NUMERIC=C                       LC_TIME=English_Australia.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] sodium_1.1                      DBI_1.0.0                       rhandsontable_0.3.7             RSQLite_2.1.1                  
[5] shiny_1.2.0                     data.table_1.12.0               MapleDocumentationTesting_0.1.0

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.0        compiler_3.5.2    later_0.8.0       prettyunits_1.0.2 remotes_2.0.4     tools_3.5.2       bit_1.1-14       
 [8] testthat_2.0.1    digest_0.6.18     pkgbuild_1.0.2    pkgload_1.0.2     jsonlite_1.6      memoise_1.1.0     pkgconfig_2.0.2  
[15] rlang_0.3.1       cli_1.0.1         rstudioapi_0.9.0  commonmark_1.7    rJava_0.9-10      withr_2.1.2       stringr_1.4.0    
[22] roxygen2_6.1.1    xml2_1.2.0        xlsxjars_0.6.1    htmlwidgets_1.3   desc_1.2.0        fs_1.2.6          devtools_2.0.1   
[29] bit64_0.9-7       rprojroot_1.3-2   glue_1.3.0        R6_2.4.0          processx_3.2.1    sessioninfo_1.1.1 blob_1.1.1       
[36] callr_3.1.1       purrr_0.3.1       magrittr_1.5      backports_1.1.3   ps_1.3.0          promises_1.0.1    htmltools_0.3.6  
[43] usethis_1.4.0     assertthat_0.2.0  xtable_1.8-3      mime_0.6          httpuv_1.4.5.1    xlsx_0.6.1        stringi_1.3.1    
[50] crayon_1.3.4 

Does anyone have any advice on what to do?

1 Like

On further testing, it seems that the slow-down happens when I switch tasks. After switching back to RStudio from a differnet window, the first operation in R lags.

How big is your .git folder?

I ask because I have seen some odd behavior after I accidentally checked a 3GB CSV into a git repo. Things got really weird and lagged like crazy.

1 Like

RStudio will attempt to call git status behind the scenes in these cases, and if that is slow for some reason that can also cause RStudio to pause and / or hang.

Do you see the same behavior in a regular Git Bash console?

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.