R 3.4.1 “Single Candle” Personal Library Path Error: unable to create ‘NA’

前端 未结 6 1447
时光说笑
时光说笑 2020-12-08 06:36

I just updated to R (3.4.1 \"Single Candle\") on my Linux Mint 18.1 Cinnamon machine and I attempted to install a package. R returned the following:

> ins         


        
6条回答
  •  情话喂你
    2020-12-08 07:17

    My solution was the following:

    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.

提交回复
热议问题