Post

2 followers Follow
1
Avatar

R studio is extremely slow when using VPN

Hi,

I love the R-studio IDE to perform the data analytics and  I use it every day. When I am at the office (hooked up to the corporate Ethernet), Rstudio works fine. But when I am working remotely (using VPN), Rstudio is extremely slow in executing R commands, autocompletion, loading the snippets etc.For that reason, I cannot reliably use the Rstudio when outside the corporate network.  I guess this is something to do with client-server communication between Rstudio and locally installed R. I tried to search for answers on Rstudio support website, Stack Overflow, Quora etc. but did not find any solution to fix this issue. I would appreciate your help.

Here is info about my setup

Windows 10 (64 bit) machine, 16 GB RAM

> sessionInfo()
R version 3.3.3 (2017-03-06)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)

locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252

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

other attached packages:
[1] stringr_1.2.0 data.table_1.10.4 dplyr_0.5.0 purrr_0.2.2.2
[5] readr_1.1.1 tidyr_0.6.3 tibble_1.3.3 ggplot2_2.2.1
[9] tidyverse_1.1.1 ROracle_1.3-1 DBI_0.6-1 lubridate_1.6.0
[13] RevoUtilsMath_10.0.0

loaded via a namespace (and not attached):
[1] Rcpp_0.12.11 cellranger_1.1.0 plyr_1.8.4 base64enc_0.1-3 forcats_0.2.0
[6] tools_3.3.3 digest_0.6.12 evaluate_0.10 jsonlite_0.9.19 nlme_3.1-131
[11] gtable_0.2.0 lattice_0.20-34 rlang_0.1.1 psych_1.7.5 yaml_2.1.14
[16] parallel_3.3.3 haven_1.0.0 xml2_1.1.1 httr_1.2.1 knitr_1.16
[21] RevoUtils_10.0.3 hms_0.3 rprojroot_1.2 grid_3.3.3 R6_2.1.2
[26] readxl_1.0.0 rmarkdown_1.5 foreign_0.8-67 reshape2_1.4.2 modelr_0.1.0
[31] magrittr_1.5 backports_1.1.0 htmltools_0.3.6 scales_0.4.1 rvest_0.3.2
[36] assertthat_0.2.0 mnormt_1.5-5 colorspace_1.3-2 stringi_1.1.5 lazyeval_0.2.0
[41] munsell_0.4.3 broom_0.4.2

         

Santosh

2 comments

0
Avatar

I'm having the exact same issue: 

Here's my setup:

R version 3.4.0 (2017-04-21)
Platform: i386-w64-mingw32/i386 (32-bit)
Running under: Windows 10 x64 (build 14393)

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252

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

loaded via a namespace (and not attached):
[1] compiler_3.4.0

Kieran Shah 0 votes
0
Avatar

I might have found a solution for this issue (at least it works for me). 

  1.  If you have your default work directory pointing at a network location (shared drive etc.), change it to a local directory. 
  2. Launch rstudio before you connect to VPN, once Rstudio is launched completely then connect to VPN. 

I don't know exactly what is causing it but above-mentioned steps fixed my issue. 

Good luck. 

Santosh 0 votes