default R personal library location is null

后端 未结 3 1311
感情败类
感情败类 2020-12-30 08:01

I updated my Ubuntu 16.04 machine to R 3.4.1. When installing the first non-required package (eg, lubridate), I received the message:

would you like

3条回答
  •  自闭症患者
    2020-12-30 08:01

    On your computer, your current library is named after your R version.

    For instance, my current lib is :

    .libPaths()
    [1] "/home/colin/R/x86_64-pc-linux-gnu-library/3.3"
    

    as my current R version is 3.3.

    So yes, every time you'll update R, you'll face this lib problem. Note that you can set the path to your old library with .libPaths(new = "path/to/your/lib") or copy and paste your old library in the new one.

    Colin

提交回复
热议问题