R 3.4.1“单蜡烛"个人图书馆路径错误:无法创建"NA" [英] R 3.4.1 "Single Candle" Personal Library Path Error: unable to create ‘NA’
本文介绍了R 3.4.1“单蜡烛"个人图书馆路径错误:无法创建"NA"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我刚刚在Linux Mint 18.1 Cinnamon计算机上将其更新为R(3.4.1单个蜡烛"),并且尝试安装软件包. R返回以下内容:
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:
> install.packages('ggplot2')
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
Warning in install.packages("ggplot2") :
'lib = "/usr/local/lib/R/site-library"' is not writable
Would you like to use a personal library instead? (y/n) y
Would you like to create a personal library
NA
to install packages into? (y/n) y
Error in install.packages("ggplot2") : unable to create ‘NA’
我之前遇到过"lib not writable"(无法写的lib)输出,但是通常它提供了这样的解决方案:
I have encountered the 'lib not writable' output before but typically it offers a solution like this one:
Would you like to create a personal library
~/R/x86_64-pc-linux-gnu-library/3.4
to install packages into? (y/n) y
关于个人图书馆为何建议不适用的任何想法?有没有办法手动覆盖它?
Any ideas why the personal library is suggesting NA? Is there a way to manually override this?
推荐答案
2017年7月8日之后,这将解决所有问题
After July 8, 2017 this will resolve all problems
sudo apt-get update
这篇关于R 3.4.1“单蜡烛"个人图书馆路径错误:无法创建"NA"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文