The issue I have is R Studio being (pretty much) completely unresponsive. Codes are not being run and I am unable to create new projects, and R studio stalls out when trying to quit out, restarting, or terminating the session- please see screenshots. Literally nothing is working- I can't even open up a new, blank R script. I'm running R Studio on a 2015 MacBook. R Studio Stalling Notice the console ">" status symbol is not present.
I have tried the following suggestions but none have worked:
reinstalling R and R studio
Deleting the folder: /Users/[my username]/.rstudio-desktop --**** I CANNOT FIND THIS FOLDER- It doesn't exist???** suggestion from: https://stackoverflow.com/questions/34532328/couldnt-quit-r-session-or-couldnt-quit-rstudio** Folder missing!!!
Loading the suggested code in Terminal: /Applications/RStudio.app/Contents/MacOS/RStudio
Thanks so much for any insights,
LD
If you're on a mac these may be hidden files, try cmd + shift + . to see those hidden files.
I had to uninstall R, R studio, delete all .rdata and workspace files from my active directory as well as the .rstudio-desktop folder from my home directory as well
Related
For a long time, I have noticed that R scripts sometimes open in R studio without the correct directory displayed. As a result, getwd() references the wrong path and much of the script doesn't work. It seems to occur whenever R studio is opened with a script that wasn't closed previously, and could usually be resolved by closing R studio and opening the script in R studio directly from File Explorer. Today, even that doesn't work, rendering the getwd() command useless.
I am running R Studio 1.3.959 on a Windows 10 PC with 64-bit R 4.0.2.
I've created a new package project with RStudio but when I open .R files the source pane remains empty.
The tab shows that the file name is being registered, but none of the script appears.
When I open the hello.R file in a 'normal' project the contents of hello.R appear as expected.
I have tried reinstalling both R and RStudio and checked that windows 10 is up to date.
I'm using R version 4.2.0, RStudio 2022.02.2 Build 485, Rtools42 on a windows 10 OS
The same is true for a previous local package I have developed which I can no longer edit. The existing package works fine but when I open the .R files non of the code is displayed.
I'm hoping someone may have some ideas to resolve this or where to look to try to problem solve this.
My work round is to use a previous version of R: 4.1.3 in which case the scripts appear as expected in the source window.
Package project console
'Normal' project console
After opening a .R file in Pycharm and trying to run the R code, the error R Console Failure: Cannot run console until path to viable R interpreter is specified appears. The R language plugin is installed, as is R for the computer, but PyCharm File -Settings -Languages and Frameworks does not show R (screenshot ). RStudio runs the R code in the file without problems. PyCharm used to run it, but after closing and reopening PyCharm, the file no longer runs.
I did the Edit Configurations that PyCharm asked and specified a .R configuration: the file is my open file that I want to run, the file directory is the working directory.
The file in question is an existing file initially created in RStudio. It is not a PyCharm project.
Ubuntu 18.04 on Dell Latitude E 7470.
Restarting PyCharm worked for me.
I was working on a Python project. Then I decided to change to an R project, opened it, and then opened some R files in PyCharm. That's when the error appeared.
I restarted PyCharm and upon reopening it, the R files were all there and the R console was working.
I just encountered a similar problem. I think the issue was that when I created the project in Pycharm. I did not initially choose to create the project as an R Project or R Package. Not sure if it's possibly to work around this if the project was initially designed with Python.
Copying the R file to a folder with a previously working PyCharm project (with a main.R file) and then opening it in PyCharm, the code in the file ran. The problem was solved, but it reappeared after the computer went to sleep and was wakened.
The file in the folder of the working PyCharm project no longer ran, but generated the original error. Closing the file in PyCharm and reopening did not work. Closing PyCharm and then doubleclicking the file to open it and PyCharm together worked: the code in the file ran.
When I double click an R script (.R file) in order to open and edit it, nothing happens.
I expect it to open it in either R or RStudio but it doesn't.
I found a similar (old) question (Opening a .R file via a double click (Windows)) but the solution doesn't work for me.
I have tried:
- right-clicking and explicitly telling it to open it with RStudio
- set it as the default program to associate with this file type
- drag the script into RStudio
Anyone any idea whether it is Windows or R(Studio) related?
Running:
Windows 10 Pro
R version 3.6.1
RStudio version 1.2.1335
As the first comment suggest, it is likely a problem occuring while installing R or Rstudio. This would most likely be fixed by reinstalling Rstudio. If it doesnt i'd suggest checking out this Rstudio question.
Basically, you can manually create using the command prompt (start -> "cmd" -> enter), using
assoc .R=rfile
Ftype rfile="C:\Program Files\RStudio\bin\rstudio.exe" %1
changing the rstudio directory to the correct directory for your computer.
A less command-prompty solution might be available by following the steps described in this guide. However i did not test the latter approach.
I completely uninstalled R Framework and R Studio from my Mac.
I moved the applications to trash, and also in terminal ran the following:
sudo rm -rf /Library/Frameworks/R.framework /Applications/R.app \
/usr/bin/R /usr/bin/Rscript
I then downloaded brand new (latest versions) of R and R Studio and installed them.
When I open R Studio again after re-installing, I expect a blank, new, default environment but instead all my tabs (open R and Rmd files) are still present and open in R Studio.
How can this be??
Also, the bug I'm trying to resolve with one of my packages is still persisting
I am using RStudio 0.99.489 on a Linux machine, and for me RStudio automatically saves user settings to ~/.rstudio-desktop, for example holding:
history: ~/.rstudio-desktop/history_database
files pane settings: pcs/files-pane.pper
Since user settings were not deleted then of course the next time you re-installed RStudio, RStudio follows these histories, pane settings etc again.
To have a completely default appearance, be sure you quit RStudio first, then delete it like:
$ rm -r ~/.rstudio-desktop
Then start RStudio and it should appear with the default appearance.
I removed all environment objects, cleared the workspace, uninstalled R Framework and R Studio, and restarted my computer. This seemed to fix the issue.
I think clearing the workspace was the key after trying a re-install several times.
$ rm -r ~/.rstudio-desktop as the other answer suggests is good to try as well.