My problem is i have been able to use rstudio to write code for a long time. However, recently, when i start my rstudio, no matter which button i click or whatever I do, this "Error: Unable to establish connection with R session" pop up. When I tried to edit files, it shows up. When I tried to run code, it shows up. I couldn't remove plots. I could not do anything with Rstudio now. This is being a problem.
I uninstalled rstudio and then reinstall. The same problem still persists.
Please help. It's been a few days that this has been happening already. I really need a fix on this.
Thanks.
Update:
Below are the methods I have tried and the "Unable to establish connection with R sessino" still would not go away.
-
Resetting the Rstudio desktop by removing the entire folder.
-
Remove start-up files
.Rdata
,.Rprofile
and.Rhistory
andRprofile.site
-
Changing software rendering to "Software"
-
Uninstall R and RStudio and reinstall again.
I have attached my SessionInfo()
below.
> sessionInfo()
R version 3.6.3 (2020-02-29)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18363)
Matrix products: default
locale:
[1] LC_COLLATE=English_Hong Kong SAR.1252 LC_CTYPE=English_Hong Kong SAR.1252 LC_MONETARY=English_Hong Kong SAR.1252
[4] LC_NUMERIC=C LC_TIME=English_Hong Kong SAR.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] Rcpp_1.0.3 lattice_0.20-38 zoo_1.8-6 digest_0.6.23 later_1.0.0 mime_0.9 grid_3.6.3
[8] R6_2.4.1 xtable_1.8-4 magrittr_1.5 rlang_0.4.2 promises_1.1.0 tools_3.6.3 shiny_1.4.0.2
[15] httpuv_1.5.2 fastmap_1.0.1 compiler_3.6.3 htmltools_0.4.0
None of the above works for me.
Can RStudio please look into it please ? I am working on my master thesis and the deadline is coming up.
Update:
Just notice that every time I started my RStudio, It reopened the multiple browser() windows (for debugging) that was closed previously.
# ERROR: Definition of function 'testing' not found
# in namespace '.GlobalEnv'