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

前端 未结 6 1446
时光说笑
时光说笑 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:11

    I don't know what's causing this problem (i'm also experiencing it on Ubuntu 16.04), but here's a quick workaround:

    .libPaths(c("/home/your_username/R/x86_64-pc-linux-gnu-library/3.4/", .libPaths()))
    

    Of course, you can replace "/home/your_username/..." for any another directory (that will store your personal library).

    This solution makes install.packages() and library() work. Waiting for a full fix!

    EDIT: I should note that this solution is not persistent. That is, it won't last after restarting R. You can fix this by adding the same line of code described above to the /home/your_username/.Rprofile file.

提交回复
热议问题