linux 如何卸载r语言,Ubuntu删除R中的.libPaths()

本文介绍了在Linux系统中卸载R语言后如何清除.libPaths()中的特定路径,以避免警告消息。通过设置环境变量R_LIBS_SITE为空字符串,或者在RStudio中编辑~/.Renviron文件,可以确保只保留个人图书馆路径。同时提供了在Windows系统中类似操作的方法。
摘要由CSDN通过智能技术生成

安装RStudio之后,我跑了:

library()

Warning message:

libraries ‘/usr/local/lib/R/site-library’, ‘usr/lib/R/site-library’ contain no packages

然后我输入:

.libPaths()

[1] "/home/avalon/R/x86_64-pc-linux-gun-library/3.2"

[2] "/usr/local/lib/R/site-library"

[3] "/usr/lib/R/site-library"

[4] "/usr/lib/R/library"

如何删除[2]和[3]以防止再次出现警告消息?

预期产量:

.libPaths()

[1] "/home/avalon/R/x86_64-pc-linux-gun-library/3.2"

[4] "/usr/lib/R/library"

解决方法:

Linux的

首先要做的是阅读它上面的联机帮助页(?.libPaths),你会看到:

‘.libPaths’ is used for getting or setting the library trees that R knows about (and hence uses when looking for packages). If called with argument ‘new’, the library search path is set to the existing directories in unique(c(new, .Library.site, .Li

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值