RStudio plotting issue with Mac - r

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.

Related

Neither R nor RStudio will execute any plot

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)

RStudio Freezing

I have tried redownloading R and RStudio. I've also tried downloading it from Microsoft Edge and Google Chrome. When I run RStudio. It completely freezes and I cannot write edit anything and I also cannot close out RStudio without doing Ctrl+Alt+Delete to Task Manager to end task.
R (standalone) R x64 4.0.3 runs perfectly fine.
Does anyone else have this issue currently? This just started recently.
EDIT: I found a solution where if I open up a separate RStudio window while the one that is frozen is still present, and then CTRL+ALT+DELETE to remove the other window. Then it runs. Although, I would like to find a better solution in the future.
After 10 min the original frozen version works
Figured it out. If you delete a file that is found in the tab of RStudio. You need to wait 5-10 min until it unfreezes and then delete those tabs from RStudio.

change lines are very slow in Rstudio on Mac

In the past few days, I am experiencing this weird problem which I never had before. When I want to change lines (by hitting return button) in Rstudio, it is almost frozen for a few seconds (have the spinning loading sign on Mac). It's really annoying now, as it happens almost every time I change lines. I tried to restart my computer, closed all other applications, and even updated Rstudio, but problem doesn't go away. I am on Rstudio version 0.99.486, and OS X version 10.9.5. Does anyone have this problem before, what's the matter? thanks!

RStudio (0.99.473) on Win 7 64-bit SP1 -- Empty Parent Window on Startup, Nothing Works

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.

tools:RGUI disappears from globalenv R

I just installed the newest version of R for my OS -- R version 3.1.3 for MAC. The tools:RGUI does not load properly. Half the time, I open R and search() does not include tools:RGUI. The other half of the time, it does appear but then quickly disappears from the global environment. As a result, I cannot use the help function or search for and install packages. My internet connection is fine. Any ideas?
I think I figured out the problem; I had detach() at the start of my code. I do not normally attach data as I have been told it is a bad habit that can lead to problems. They were right. I have deleted all the references to attach and detach and things seem to work fine now.

Resources