I changed my laptop and installed a new version of RStudio. Since then, I am having problems when I code, since every few minutes a window with the following message appears:
Unable to establish connection with R session
Moreover, when I try to run a chunk of code another error message appears:
Error: Unable to establish connection with R session
I have to try to run it three or more times to run the code.
Here you are the sessionInfo()
R version 3.6.1 (2019-07-05)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18362)
Matrix products: default
 LC_COLLATE=Spanish_Spain.1252 LC_CTYPE=Spanish_Spain.1252 LC_MONETARY=Spanish_Spain.1252 LC_NUMERIC=C LC_TIME=Spanish_Spain.1252
attached base packages:
 stats graphics grDevices utils datasets methods base
other attached packages:
 reshape2_1.4.3 gmodels_2.18.1 ggplot2_3.2.1 knitr_1.24
loaded via a namespace (and not attached):
 Rcpp_1.0.2 magrittr_1.5 MASS_7.3-51.4 tidyselect_0.2.5 munsell_0.5.0 colorspace_1.4-1 R6_2.4.0 rlang_0.4.0 stringr_1.4.0 plyr_1.8.4
 dplyr_0.8.3 tools_3.6.1 grid_3.6.1 gtable_0.3.0 xfun_0.8 withr_2.1.2 gtools_3.8.1 lazyeval_0.2.2 assertthat_0.2.1 tibble_2.1.3
 crayon_1.3.4 purrr_0.3.2 glue_1.3.1 stringi_1.4.3 gdata_2.18.0 compiler_3.6.1 pillar_1.4.2 scales_1.0.0 pkgconfig_2.0.2
I also tried to reinstall RStudio and to reset the Rstudio's state. However, the problem persists.
Any ideas how to fix this?
Thanks in advance for your help,