I have an Renv package stored as tar.gz file.
I would like to unzip the folder and do the below steps
a) Click the .Rproj file
b) Use the "Install and Restart" option in Rstudio to build the package
However, the .Rproj file doesn't open. Instead, it keeps loading fprever and I get the below error.
The Rstudio server isbtaking a long time to respond. It is possible
that your Rsession jas become unresponsive. Do you want to terminate
the currently running R session
I am new to R and Rstudio. Any advice on what should I do to open this .Rproj file?
Related
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.
Scenario
I read here it was a good idea to make a working directory for R by making a new folder called "R" in the "Documents" folder, so I did exactly that: C:\Users\jsmit\Documents\R.
When I installed R (v4.0.0) to my Windows 10 PC, it installed here: C:\Program Files\R\R-4.0.0.
After installing and running R with RStudio, .Renviron and .Rhistory appeared here: C:\Users\jsmit\Documents.
There is a different .Rhistory in C:\Users\jsmit\Documents\R that updates each time I use R (the files in C:\Users\jsmit\Documents have not updated themselves since installation day).
Questions
Without rendering R and/or RStudio useless...
(1) can I move .Renviron from C:\Users\jsmit\Documents into C:\Users\jsmit\Documents\R?
(2) can I move/delete .Rhistory (a possible unused copy) from C:\Users\jsmit\Documents since there appears to be another updated file by the same name in C:\Users\jsmit\Documents\R?
If not, why not, and how can I clean up my C:\Users\jsmit\Documents directory?
It is safe to move/delete either file.
.Renviron only contained the text: PATH="${RTOOLS40_HOME}\usr\bin;${PATH}"
.Rhistory contained all of the commands used up to the last time you issued a command (in my case, the up-to-date version in the working directory C:\Users\jsmit\Documents\R contained all the commands used to download new R packages and some Rscript and the non-updated version in the C:\Users\jsmit\Documents folder contained only a single command used to download devtools).
I deleted .Renviron from C:\Users\jsmit\Documents and it did not reappear after restarting R/RStudio nor affect R/RStudio use.
I moved .Rhistory from C:\Users\jsmit\Documents into C:\Users\jsmit\Documents\R and in doing so replaced the old version there. It did not reappear after restarting R/RStudio nor affect R/RStudio use.
I am running RStudio on a compute cluster, and every time I launch an RStudio instance it immediately crashes. I suspect there is something wrong with the workspace that loads by default. However, I can't actually find where this workspace is stored. How do I delete this file?
I found a hidden file named .Rdata in the /usr/ directory. But when I rename this file and boot up an instance of RStudio, the old workspace still boots up.
I resolved the problem by renaming the folder in the RStudio-Desktop Directory:
~/.rstudio-desktop/sources/
If you're not using Linux, you can find the location of your RStudio-Desktop Directory here:
https://support.rstudio.com/hc/en-us/articles/200534577-Resetting-RStudio-Desktop-s-State
I am currently trying to change the settings of R running on my Mac so that it automatically loads packages I want. I created a .Rprofile file and dropped it into "~/", my home directory.
In the .Rprofile file, all I wrote was:
library("package1")
library("package2")
library("package3")
However, when I save and exit R, then go back, the packages have not installed by themselves. Is there something I am doing wrong? Thanks!
I've installed R like this many times but it always seems I blunder through some step so that I can open .rdata files from anywhere. Right now I can open Rgui.exe (my preferred approach) where it is installed (C:\Users\myname\Documents\R\R-2.15.3\bin\i386) but in no way can I open a .rData file.
I click the .rData and "open with..." but directing it to open r with the above path will not open the file. What is the subtle step to get this to work?