Error in newly re-installed RStudio (Windows XP) - r

What is the meaning of the following error when I start RStudio, and how can I address it? I re-installed a new version of R (3.2.1) and did a reinstall of RStudio
"rsession.exe - Entry Point Not Found
The procedure entry point strerror_s could not be located in the dynamic link library msvcrt.dll."

I installed Rstudio with R(3.2.1) to my XP box and get this same error message when opening Rstudio. Clicking "OK" and moving past the error message yields what appears to be a perfectly good Rstudio. That is, I have used tutorials and it works as the tutorial indicates it should. Plotting is fine, calculating is fine, etc.

you can install a old version of Rstudio that was still supporting XP: For instance https://download1.rstudio.org/RStudio-0.98.245.exe

The answer from RockScience points to an out-of-date URL (and older version of RStudio). This is the official RStudio page for older versions, where version 0.98.1103 is available. This message was written in Oct 2016.
On installation the reported error does not occur and everything appears to work fine. However, the following appears in the Console:
Warning message:
R graphics engine version 11 is not supported by this version of RStudio.
The Plots tab will be disabled until a newer version of RStudio is installed.
Not sure of the full meaning of this warning but all plot types that I tested so far seem to work great. They do appear in a separate window, however, and not integrated into the "Plots" tab of RStudio. After installing the "ggplot2" package, the warning still occurs.

Related

RStudio does not render Plotly plot on new machine

I bought a new laptop a few days ago (Windows 10) and installed R 4.0.0 and the last RStudio version (Desktop 1.2.5042) on it. Subsequently I ran the rtools40 installer and installed the latest versions of the popular R packages (including ggplot, plotly and so on). Everything seems to work, except for the RStduio viewer pane when trying to render a plotly plot. What happens is that, when I run a minimal example (like this https://plotly.com/r/line-charts/) the view pane is activated, but no plot is rendered. Also no error is raised and the RStudio R session starts draining a lot of CPU capacity, although no code is apparently running (e.g. I can run a plot() and it will be properly displayed in the plot pane).
Now, I've tried downgrading and running RStudio (3.x) from Anaconda - neither worked.
Also - my browser wold not render local plotly plots, bit it would render external plots (like in the example above https://plotly.com/r/line-charts/).
Any ideas?
Apparently it is an issue with R 4.0 and RStudio 1.2.5042 on Windows 10 x64:
https://github.com/rstudio/rstudio/issues/6737
I downgraded to R 3.6.1 and RStudio 1.2.5042 and the problem is gone.
RStudio is due to fix the issue with its v1.3-patch.

Cannot launch RStudio 1.2.1335 on Fedora 29

I used RStudio Desktop 1.1.463 on my Fedora 29 without problems. I use R version 3.5.3. A new version of RStudio is available (1.2.1335) and after installation through .rpm and clicking on app symbol in Menu, like before, nothing happens. I get no error, no message, nothing, so cannot really pinpoint to anything. I know that the installation was successful since the icon logo was updated.
Download the Zip/Tarball from the rstudio website https://www.rstudio.com/products/rstudio/download/#download
Open a terminal and extract e.g.
tar xzfv rstudio-1.2.1335-x86_64-fedora.tar.gz
Then run
./rstudio-1.2.1335/bin/rstudio
Check if you get any specific error.
It runs fine for me on Fedora 29 with 5.1.11-200.fc29.x86_64

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!

System Error after installing R package

I am running R 3.2.2 on Windows 8. After installing R packages, rattle and rpart.plot in RStudio an error message propped up in a separate panel.
Rterm.exe - System Error.
The program can't start because libatk-1.0-0.dll is missing from your computer.
Try reinstalling the program to fix this problem.
Does anybody have any clue as to what this means and how to fix this?
Thank you all for your inputs. I managed to figure it out.
The problem arose as a result of missing GTK+ file. I'm not exactly sure what GTK+ really is, but I know that GTK+ is a preliminary file needed to install the Rattle Package. Here's the step I took to download the GTK+ file.
First, remove all the tabs opened in RStudio.
Use install.packages to download Rattle package. A window should pop up asking to see if you want to download GTK+. Click Yes.
Restart RStudio.
I tried closing all the tabs and installing rattle but no pop up appear for me. I then tried installing the package "RGTK2" (fyi, my R studio is version 3.2.0) and after completing this installation, the error message can be closed off.
I restarted Rstudio and the rterm.exe error didn't appear anymore.
I had this issue.
1) Close all open source code tabs
2) install.packages("RGtk2")
I didn't even need to restart R-Studio
I just wanted to add a variation of this error. The error only appeared when using RStudio and not in the RGui. I followed Daniel Lee's answer but with no luck at first, but it pointed me in the right direction. I closed RStudio and opened The R console (RGui), and decided to uninstall the rattle package first, and then reinstalled it again. I never got the pop-up asking about downloading the GTK+. It was only when I specifically tried to run rattle: rattle() that rattle complained that the it could not find the GTK+ and prompted me to download and install it. As it turned out I had already downloaded this via another source, so rattle could not install it as it was already installed and was presented with the following warning:
Warning messages:
1: Failed to load RGtk2 dynamic library, attempting to install it.
2: In dir.create(config_path, recursive = TRUE) :
'C:\Users\[me]\Documents\R\win-library\3.3\RGtk2\gtk\x64\etc\gtk-2.0' already exists
I then attempted to start rattle, which was successful. I then started up RStudio and again fire up rattle again with success, and the error libatk-1.0-0.dll is missing has now disappeared.
Current setup: R version 3.3.0, RStudio version 0.99.896
Try uninstalling the rattle package, then it will prompt to install GTK+. Install that and then cancel the uninstall of the rattle package. Quit R studio and restart it. The libtak error will disappear.
I would only get this error when running RStudio. I did close all my RStudio tabs and cleared the workspace as suggested by others. Installing rattle from RStudio would still produce the error. For me, it looks like RStudio could not install RGtk2 due to some permissions issue (i.e. Access Denied with removing the old RGtk2).
I had to manually delete rattle and RGtk2 folders from my R library folder (for me it was in my users folder My Documents\R\win-library\3.3). Then from Rgui (NOT RStudio), I did install.packages("rattle"). This also installed RGtk2 without any permissions issues. The error is now gone.
Incase if it has occured from installing the rattle package in R,Just uninstall the package using remove.packages() and restart the R session. The error dissapears :)
To answer the question:
Does anybody have any clue as to what this means ?
It happens in RStudio and is related to rattle which uses RGtk2. -
This problem is because you had order version of RGtk2 installed (likely 2.20.30), which was the highest possible version for earlier version of RStudio (likely 1.0.44 or earlier) and which is required for rattle. Now when you installed new version of RStudio (1.0.143), it is not compatible with older RGtk2 version. Once you install RGtk2 again (just from Tools menu or run install.packages("RGtk2") in RStudio) , it will overwrite the old version of RGtk2 with newest (2.20.33 version), which is now compatible with 1.0.143 version of RStudio, and this fixes the problem.

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