When I try to open a freshly-installed RStudio, I am getting the following problem (and a blank application window):
ERROR r error 4 (R code execution error)
[errormsg=Error : package 'utils' does not have a namespace];
OCCURRED AT: core::Error r::exec::evaluateString(const std::string &, SEXP *, sexp::Protect *)
/Users/rstudio/rstudio/src/cpp/r/RExec.cpp:271
My specs:
Before, it was working (AFAIK with R 2.*).
Any ideas how to make it working?
Check firewall, proxy settings, and antimalware. Although RStudio does not require internet access, it does use a localhost connection to link your R session with the RStudio IDE. As a result, it is possible a (software-based) firewall, network setting, or antimalware program is blocking access to RStudio.
I would recommend restarting your machine, and if the issue persists, remove RStudio, then reinstall RStudio and R using the instructions from Chapter 1 Getting Started with Data in R | Statistical Inference via Data Science. This topic was automatically closed 21 days after the last reply.
Open RStudio just as you would any program, by clicking on its icon or by typing “RStudio” at the Windows Run prompt.
* Scroll to find the icon for RStudio * Click and drag it to your dock. To use R and R-Studio, simply click on the R-Studio icon. It is not necessary to click on the R icon, too. One Mac you need to go to the CRAN website, https://www.r-project.org/ to install the newer package installer.
I had this same issue after I installed R via Homebrew. The only way I was able to fix it was to uninstall the Homebrew "version" of R.
brew uninstall r
Then reinstalling R directly from CRAN
That worked for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With