Empty "Rplot.pdf" file is created every time Rstudio is started - r

I'm using Rstudio 1.1.383 and R version 3.4.2 (2017-09-28) on two different Mac OS X machines.
Every time I start Rstudio or I restart the R session from within Rstudio, an empty file named Rplot.pdf is created in the top folder of the current Rstudio project.
I tried re-installing both Rstudio and R with no avail.

What is causing the issue is the effects package (version 4.0.0). If there is a .R file with the line library(effects) in the project folder and I open the project, or if I open an .Rmd file containing that line from within Rstudio, the plot is created (to be sure, the issue is not happening when loading the package).
I downgraded to a previous version and that seems to have solved the problem.

Related

Unable to create an R Markdown file in rstudio

I am using Rstudio 2022.02.0+433, with r 3.6.2. When trying to create a new rmarkdown file or knit an existing one rstudio asks me to install an updated version of 'yaml' however after I've done this and restarted r the issue still persists.

Clearing R Workspace at Startup? Nothing works

When I open R Studio, a previous workspace keeps loading. I have deleted .RData files, updated R, uninstalled and re-installed RStudio, and RStudio still loads the old workspace. RStudio also will not run any R code now, even after uninstalling and re-installing.
Is there a way to do a 'hard reset' of RStudio from the terminal?
UPDATE: I was able to delete hidden .R files through the terminal, but now commands will not run in RStudio.

RStudio Install Packages and Package Updates both download then fail with cannot open file

Running happily with R 3.4 and RStudio 1.0.143 under Win10 this problem occured bringing project development to a halt. Downloads each occur and are unzipped and then the a presumably first file in the first item gets:
Error in install.packages : cannot open file 'C:/Users/Admin/Documents/R/
win-library/3.4/file30504386b80/rJava/javadoc/resources/background.gif':
Permission denied
and the prompt returns.
Updating to R version 3.4.1 (2017-06-30), RStudio Version 1.0.153 was to no avail. Using the OS to remolve all R versions and trying again with 3.4.1 did not work. Removing R again and deleting the R directory to refresh the library did not work. My virius software like to tell how helpful it has been and has not, so that issue seems unlikely.
Giving the user full control of the R library did not help.
could package-updates be a tag like install-updates?
It looks there is a problem between Java and rJava.
You should try reinstalling Java using chocolatey package manager (https://chocolatey.org/) and then reinstall rJava package.
I had a similar issue two weeks ago on a windows laptop.
I had this problem for a long time. only in RStudio.
Install the package on R and Library it. Go to RStudio and require the package.
It works!

Run R (from pkg) in terminal on OS X

I just installed MacOS version of R from the CRAN web site. Within the R GUI application, everything works fine. However, I'm unable to run it from terminal. Trying to trigger R or Rscript in terminal yields a message indicating that neither command exists.
Also I do not see corresponded scripts in /Applications/R.app/Contents/.
How can I run R from terminal?
PS: I know brew installation will help. But I want this version of R from CRAN web site.
The R installer creates /Library/Frameworks/R.framework/ directory in addition to /Applications/R.app/.
So, you need add a correct directory to the Library dir. For my packages:
R_APP_DIR=/Library/Frameworks/R.framework/Versions/3.2/Resources/
export PATH=$R_APP_DIR:$PATH

R: install.packages() doesn't work nor produce an error message

I am running R version 3.1.3 (2015-03-09) with RStudio 0.98.1103 under OS X 10.10.2 (Yosemite). I migrated to this machine recently and moved files and applications (R and profile files included) with OS X Migration assistant.
R has worked perfectly until I tried to install.packages(). The function initiates but it doesn't produce any printout or terminate. I tried different things:
I removed my .Rprofile file which indicates my package folder and restart R;
I tried different mirrors with install.packages('RMySQL', repos='http://cran.us.r-project.org');
I tried install.packages() both from shell and from R GUI;
I tried to upgrade all packages with RStudio.
I never encountered an error message of sort and none of the above worked or produced any result.

Resources