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

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.

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.

R studio Javascript Alert R encountered a fatal error

Issue description
When opening R studio, after about 10 seconds, I get a popup alert:
Javascript Alert-http://127.0.0.1:40055/
R encountered a fatal error.
The session was terminated.
If I click the OK button on the alert I get another alert:
Javascript Alert-http://127.0.0.1:40055/
null
After clicking OK again, I get the error in the console:
Error: Unable to establish connection with R session
I cannot run anything (it just has the flashing cursor permanently). I cannot click any options (e.g. if I click Tools -> Global options, then the drop down closes without doing anything).
What I have tried
Restarting my computer.
Reinstalling R and R studio.
Removing the project and history files associated with the project.
Uninstalling all my packages (I presume unnecessary but I was getting desperate).
Moving the config file mv ~/.config/RStudio ~/backup-RStudio (from https://support.rstudio.com/hc/en-us/articles/200534577-Resetting-RStudio-Desktop-s-State). I also tried moving .rstudio-desktop, but that didn't exist.
Possibly useful information
The error first started after I tried to compile and run C code in R. I think I made an infinite loop, either way it crashed R and I xkilled it. R still runs fine from the terminal.
Versions
R version 3.6.3 (2020-02-29)
rstudio version 1.4.1103
Ubuntu 20.04.2 LTS
Any help would be much appreciated!
I had a very similar error message:
Javascript Alert: R encountered a fatal error. The session was
terminated.
For me this error occurred after changing from the 64-bit to 32-bit versions of R. I tried:
restarting my machine
uninstalling/reinstalling Rstudio
installing an older version of Rstudio which has been more stable in the past
None of these worked for me, but when I deleted my ".Rhistory" file in my home directory the error message disappeared and I'm now able to run my scripts again.
Additional info:
I'm using Windows 10, Rstudio Desktop 1.4.1717 and R4.1.0 (32 and 64 bit versions)
Update: Rstudio showed the same error message again, but resetting the RStudio Desktop's state helped.

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!

RStudio won't start, R ver. 3.4.2, Rstudio ver. 1.1.383

I'm not able to start a fresh installment of RStudio. I've deleted prior versions, and are currently only running R ver. 3.4.2. Likewise I've deleted my .RData file, but nothing seems to work. The program doesn't show anything, but it is listed on running programs, and the more times I click the more times it opens a new RStudio, untill it clogs the CPU. I'm running Windows 10.
What to do?
I am afraid that this idea will help you or not that you can try this.
Uninstalling RStudio and R, cleaning the registry, and installing again.
If it is running then close it first from the task manager then uninstall the program.

RStudio Install Packages and Package Updates both download then fail with cannot open file

Running happily with R 3.4 and RStudio 1.0.143 under Win10 this problem occured bringing project development to a halt. Downloads each occur and are unzipped and then the a presumably first file in the first item gets:
Error in install.packages : cannot open file 'C:/Users/Admin/Documents/R/
win-library/3.4/file30504386b80/rJava/javadoc/resources/background.gif':
Permission denied
and the prompt returns.
Updating to R version 3.4.1 (2017-06-30), RStudio Version 1.0.153 was to no avail. Using the OS to remolve all R versions and trying again with 3.4.1 did not work. Removing R again and deleting the R directory to refresh the library did not work. My virius software like to tell how helpful it has been and has not, so that issue seems unlikely.
Giving the user full control of the R library did not help.
could package-updates be a tag like install-updates?
It looks there is a problem between Java and rJava.
You should try reinstalling Java using chocolatey package manager (https://chocolatey.org/) and then reinstall rJava package.
I had a similar issue two weeks ago on a windows laptop.
I had this problem for a long time. only in RStudio.
Install the package on R and Library it. Go to RStudio and require the package.
It works!

Resources