I'm using R on a Mac. I tried moving my Rprofile file to a different location, but R didnt start. When I tried to put the Rprofile file back into its original location, I couldn't remember which folder exactly it came from.
My Rprofile file was located somewhere in /Library/Frameworks/R.framework/...
Now R (and RStudio) fail to start, and R gives this error message:
Error: package 'grDevices' does not have a namespace
*** caught segfault ***
address 0xa8000000, cause 'memory not mapped'
Possible actions:
1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace
RStudio gives the message:
The R session had a fatal error.
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:255
I'm assuming R cannot find the Rprofile file. How can I get R (and RStudio) to start again?