Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problems with opening RStudio

Tags:

macos

r

rstudio

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:

  • OS X 10.8.5,
  • R 3.1.2 (installed by Homebrew),
  • RStudio 0.98.1091 - Mac OS X 10.6+ (64-bit).

Before, it was working (AFAIK with R 2.*).

Any ideas how to make it working?

like image 782
Piotr Migdal Avatar asked Dec 26 '14 16:12

Piotr Migdal


People also ask

Why is my RStudio not opening?

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.

Why is my RStudio not opening on Mac?

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.

How do I open RStudio after installing?

Open RStudio just as you would any program, by clicking on its icon or by typing “RStudio” at the Windows Run prompt.

How do I open RStudio on Mac?

* 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.


1 Answers

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.

like image 136
cyril Avatar answered Oct 12 '22 21:10

cyril