Reputation: 12792
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?
Upvotes: 12
Views: 8465
Reputation: 305
Install your R again in a folder (without any space (Program Files folder has space) in the folder names like the following image)
Then open Rstudio (pressing Ctrl then click on icon) select new installed path for R
This solved the issue. In MAC use the command button.
Upvotes: 1
Reputation: 946
The following commands worked for me:
┌─[ricardoramos]@[falcon]:~
└──> $ sudo mkdir .rstudio-deskop
[sudo] password for ricardoramos:
┌─[ricardoramos]@[falcon]:~
└──> $ sudo chown -R ricardoramos ~/.rstudio-desktop
Upvotes: 0
Reputation: 2811
after installing r with brew, installing rstudio failed (the downloaded size had also been about 5mb so i was already scare). I just downloded rstudio and installed it in the Applications folder, without uninstalling r and it worked. installing and updating packages has also been a breeze for me.
Upvotes: 0
Reputation: 3006
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.
Upvotes: 4
Reputation: 8247
This was the case for me too, for days! Guess what, I solved it!
While installing R-Studio, after downloading *.pkg file ( not by homebrew) from the CRAN's site , select customize and deselect R.app gui to prevent it from installing. I think it has a nasty conflict with RStudio.
To help those googling the crash report content:
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000000000054d8
VM Regions Near 0x54d8:
-->
__TEXT 0000000100000000-0000000100938000 [ 9440K] r-x/rwx SM=COW /Applications/RStudio.app/Contents/MacOS/rsession
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libR.dylib
Upvotes: 0
Reputation: 23
It worked like a charm for me.
Upvotes: 1