This issue suddenly happened without any obvious reason. R nor RStudio will execute any type of plot be it ggplot or a simple hist(). Nothing comes up in the plot viewer window and the console continually runs the code until I hit stop and the applications crash. This happens in R and RStudio.
I tried running ggplot code that had run perfectly fine previously. Now, whenever I go to plot it continually runs in the console and nothing shows up in the plot view. It will run until I hit stop and the application crashes. I thought it may be an RStudio issue so I removed it and reinstalled and nothing changed. I attempted to run simple plots (e.g. hist()) and the same issue. I then went to regular R and tried to run hist() and the same thing happened. I deleted and reinstalled both R and RStudio and still the issue persists.
Example code that will not execute a plot:
v <- c(9,13,21,8,36,22,12,41,31,33,19)
hist(v)
Related
I bought a new M1 Macbook and installed R and Rstudio. Everything worked fine for two weeks then suddenly Rstudio plotting stopped working. Rstudio gets busy, but nothing happens. I can let it run for hours, but even plot(mtcars) doesn't work.
There's no error message, just Rstudio is stuck. The issue seems to be coming from r. I deleted all R and Rstudio files and re-downloaded the most recent versions, but it didn't fix the issue. Everything else works excepting plotting. I'm thinking of re-installing the OS but would rather not if there's a less drastic solution.
Rstudio keeps opening the same three files that I had opened before. Some strange things include:
Able to close the files just fine, but can't run any of the code. R just gets stuck.
Don't have any Files, plots, packages
Whenever closing or restarting R, it just gets stuck infinitely in the attached picture (I always have to force quit)
Whats stranger is I can start a New Session and all of a sudden everything works normally in the new session (e.g. files, packages is populated; can open/save/closeout and end the session) however the old session is still unusable and I have to force quit when I'm done.
One of my RStudio projects stalls even before I've run any code or loaded any packages or data. I can edit scripts but it won't save them and it won't run code in the console. I am still able to use R from the terminal. After some time (in the range of an hour or so), multiple dialog boxes will pop up with the message Unable to establish connection with R session. I've seen a similar thing before when loading big datasets or running something computationally intensive but never before I've even run any code or loaded any data.
My other Projects don't seem to have the same problem.
I've also filed an issue here on the RStudio github with some screenshots and log files in case that's helpful.
The solution was to update the data.table package. See the issue I filed or this thread on RStudio community
I'm trying to run RStudio 0.99.473 on my Windows 7 64-bit SP1 machine. Everything was going well until I attempted an unsuccessful plot command. After that point, I have not been able to produce a plot in RStudio.
I have tried uninstalling and reinstalling both RStudio and R (version 3.2.2) several times. I have been doing several searches for a couple hours now and have had no luck. I have navigated to %localappdata%\RStudio-Desktop, but deleted the RStudio-Desktop folder before I thought about or saw any advice to just re-name it. I've attempted to navigate to %USERPROFILE%\Local Settings\Application Data\RStudio-Desktop but apparently I am unable to access it.
Now when I try to run RStudio, even after performing a fresh install, I get this terrible empty parent window with only the words in the menu bar. Clicking on the menu words produces nothing. Basically, all the usual advice that I've seen in my searches is not working. Nothing seems to reset the settings back to the default.
I'm new to R and recently I'm facing a weird problem.
When I open a new R session, everything works fine.. but after some time some commands stop working. when I execute that command:
getwd()
the output is just:
> getwd()
Instead of displaying my working directory it just displays the executed command.
After working with the session for a while, the output of variables also stops displaying. I have to close the entire Rstudio and open it anew to rectify this problem. This is wasting a lot of time.
How to come out of this??