R 3.4.1 Single Candle Personal Library Path Error: unable to create ‘NA’
After July 8, 2017 this will resolve all problems
sudo apt-get update
RStudio does not see packages after update to R 3.4
Found the solution:
In the file /usr/lib/R/etc/Renviron
there is a configuration of R.
In lines 43-45 there is:
# edd Jun 2017 Comment-out R_LIBS_USER
#R_LIBS_USER=${R_LIBS_USER-'~/R/x86_64-pc-linux-gnu-library/3.4'}
##R_LIBS_USER=${R_LIBS_USER-'~/Library/R/3.4/library'}
I have uncommented R_LIBS_USER=${R_LIBS_USER-'~/R/x86_64-pc-linux-gnu-library/3.4'}
, restarted RStudio and now it works.
EDIT: Looking at the comments, it seems like a planned behaviour. Here is another solution.
Local libraries path removed from R path after minor upgrade
It's related to 3.4.1's new(?) default behaviour of making the same library of R packages available to all users on your Linux system. See here for a neat solution: https://stackoverflow.com/a/44903158/4115816
(The thread also describes some other options.)
run R as administrator
What version of Windows are you using? You should be able to right-click on the Rstudio.exe icon, click Properties, and select an option to always run Rstudio as administrator. Be sure you use that same icon whenever you want to open Rstudio.
How can I stop a package from loading on startup in Rstudio
So this is what I did to solve the problem:
Everything below is at the directory which containes the *.RProj
file.
First, I 'hid' the .RData file by running this in the terminal.
mv .RData ./.RData_old
Next, I ran this in an R session (not Rstudio):
remove.packages('XLConnect', 'XLConnectJars')
Then I closed the R session and opened the Rstudio project to make sure it would open fine without the RData file.
After that I got my RData file back
mv .RData_old ./.RData
Finally I opened the project file again and presto!
It complains about packages not installed but at least I know which packages are required. Moreover, my data and results aren't lost.
Related Topics
Choosing Eps and Minpts for Dbscan (R)
Add Dynamic Subtitle Using Ggplot
Embedding an R HTMLwidget into Existing Webpage
R Scoping: Disallow Global Variables in Function
Plot Logistic Regression Curve in R
Generate Matrix with Iid Normal Random Variables Using R
Multiple Lines Each Based on a Different Dataframe in Ggplot2 - Automatic Coloring and Legend
What Is the Correct Way to Ask for User Input in an R Program
Three-Way Color Gradient Fill in R
How to Save Summary(Lm) to a File
Get Filename and Path of 'Source'D File
How to Plot Logit and Probit in Ggplot2
Plotting a Large Number of Custom Functions in Ggplot in R Using Stat_Function()