R and RStudio won't open Mac OS X 10.10.5 - r

I have been using R & RStudio for around a year now. When trying to open RStudio, it would keep loading, or give me a blank RStudio page. I read the RStudio Desktop Would Not Start, and other helpers, and I think there was a connection issue with R, so I deleted both R & RStudio. I then downloaded RStudio again, the latest version, and downloaded R 3.3.3, because I'm using a Mac OS X Yosemite version 10.10.5 and therefore can't get R 3.4. Anyway, so, when I re-downloaded R, it would open, but my mouse would just keep spinning and it wouldn't work or it would instantly crash. I couldn't type anything or do anything.
Here is what it currently looks like. My mouse would also be spinning, and it would slow my entire computer down.
I tried removing files such as .Rprofile, .Renviron, and .RData, but that didn't work.
I also still can't open RStudio.
If I type Sys.which("R") in my Terminal I get this error:
-bash: syntax error near unexpected token `"R"'. "
Would anybody please, please be able to help? I really miss using R & RStudio and am out of ideas.

Related

R memory issues after reinstall

I have been running several R scripts without issue until one day I tried to open RStudio and it said "Fatal error: unable to open base package in R." I uninstalled and reinstalled both R and RStudio, which solved that issue. However, now when I run one of the R scripts that I had been running previously, I get a "cannot allocate vector of size" error (this is a modeling script with several models and iterations).
Additionally, when I try to load a very large dataset, I was previously able to load it with the line memory.limit(size=18000). Now, it doesn't let me set it to anything above 4000, so I cannot load the dataset. I get the error "Error in memory.limit(size=18000): don't be silly!: your machine has a 4Gb address limit"
I am currently running RStudio 2021.09.2 and R 4.1.2. Before the reinstall, I believe I was running RStudio 1.4.1106 and R 4.1.0.
Thank you.
I had a very similar issue, and it turned out that after updating RStudio, it defaulted to using the 32-bit version of R instead of the 64-bit one. Once I switched it to the 64-bit one in RStudio, the memory issue stopped.
To do this, in RStudio on Windows go to Tools > Global Options and then change the R version... drop-down to the appropriate one installed on your system.

Fatal error: unable to initialize JIT - R 3.5.1 and RStudio 1.4463

I recently decided to upgrade both R and RStudio on my PC, 64-bit version.
First, I uninstalled the previous versions, RStudio 1.4462 and R 3.4.4, and then I installed R 3.5.1 and RStudio 1.4463, in the order here mentioned.
The installation goes just fine, but when I try to open R from the desktop shortcut I receive an error message saying:
Fatal error - unable to initialize JIT
The same thing happens with RStudio.
I click OK on the message (it's the only thing I can do) and R closes immediately, same for RStudio.
What could cause this issue? I looked around the internet but I couldn't find anything useful.
Not sure the cause of the JIT error, but in case anyone stumbles upon this thread later, I was able to overcome this issue by reinstalling the same version of R (4.1.0 in my case) on my machine, overwriting the old version. Doing so seemed to maintain all my previously installed packages too. Now R & Rstudio works fine on start-up. Give it a try!

Multiple users of RStudio on virtual machine gives fatal error

We use an installation of RStudio on a virtual machine, accessible by multiple users. With version 0.98.501 this was no problem. Lately we installed version 0.99.447 and now RStudio gives an error as soon as somenone tries to open RStudio as a second user. Also we changed R version from 3.1.1 to 3.2.1, but this doesn't seem to cause the problem because opening of R without RStudio by multiple users is still possible.
This is the error:
Has anyone an idea what's going wrong here? Many thanks in advance!
EDIT The dutch error message says something like: "the path to the storage place(?) is invalid".
This was a known issue with RStudio 0.99, and was fixed in build 0.99.451. The latest build (0.99.465) has the fix; you can get it here:
https://www.rstudio.com/products/rstudio/download/

Running system command from R console cannot locate installed programs since upgrading to Mac OSX 10.10

I have been having some weird issues with R (3.1.1) and RStudio (0.98.1079) and I suspect that it is due to the fact that these programs are not longer referencing the right places after I upgraded to Mac OSX 10.10.
In particular, I cannot seem to find packages that I know I have installed on my computer to run using the system command in the R console. That is, running man pdflatex in a Terminal window yields the help manual for PDFLATEX. However running system('man pdflatex') from the R console yields the error message No manual entry for pdflatex.
The issue persists even though I reinstalled R, RStudio and MacTex since I upgraded to Mac OSX 10.10. Any help would be appreciated!
Yosemite has a bug wherein some environment variables, including PATH, appear twice in a program's environment with different values. For instance, you might notice that Sys.getenv("PATH") will show you one PATH, and system("echo $PATH") will show you an entirely different one.
I expect that most of your problems are due to this bug.
There are a few workarounds you can try immediately:
You can manually forward PATH yourself. Try this:
> system2("man", "pdflatex", env=paste0("PATH=", Sys.getenv("PATH")))
Or, you can start RStudio from Terminal:
$ open /Applications/RStudio.app
Both the R and RStudio engineers have implemented workarounds in the last few days. R (as of 3.1.2) and RStudio (as of 0.98.1087) should behave as you'd expect.
There are a host of questions about similar problems. All of them appear to come up when you update OS X to either Yosemite or Sierra with an older version of R already installed.
The easiest solution is to completely uninstall R (note the comments about using which R !), and then to install it again.
This also solves problems such as R showing different version numbers in terminal and the GUI.

R package "repmis" crashes R on library(repmis)

I tried installing a list of packages this morning and had an error which crashed R when I ran library(repmis)
install.packages("repmis")
library(repmis)
I've uninstalled & reinstalled R (on my mac by deleting the app and downloading the new build), but still get an app crash when I run library(repmis).
Can anyone tell me why? And/or how I can more effectively uninstall R to get this package to work again?
Problem solved, I restarted the computer and repeated the procedure above and this time received a prompt to install a Java 6 runtime.
I'm guessing that the dialogue box had issues displaying earlier because of some system printer windows I had open.

Resources