天上的名字实际上会清除R中的.libPaths吗?

时间:2018-10-27 03:53:59

标签: r shared-libraries library-path

基于网络上的许多答案,我尝试了多种方法:

.libPaths():
[1] "/home/balter/conda/lib/R/library" "/home/balter/R"
> .library=""
> .library.site=c("")
> .libPaths()
[1] "/home/balter/conda/lib/R/library" "/home/balter/R"
> Sys.unsetenv("R_LIBS_SITE");Sys.unsetenv("R_LIBS");Sys.unsetenv("R_LIBS_USER")
> .libPaths()
> .libPaths()
[1] "/home/balter/conda/lib/R/library" "/home/balter/R"
> .libPaths("")
> .libPaths()
[1] "/home/balter/conda/lib/R/library"
> .libPaths("")
> .libPaths()
[1] "/home/balter/conda/lib/R/library"
> .library.site
[1] ""
> assign(".lib.loc", "")
> .libPaths()
[1] "/home/balter/conda/lib/R/library"

我希望能够将.libPaths设置为空,或者至少完全设置为我想要的残差。

0 个答案:

没有答案