R 3.4.1 "Single Candle" Personal Library Path Error: Unable to Create 'Na'

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



Leave a reply



Submit