【问题标题】:How to set the library location of installed R packages如何设置已安装 R 包的库位置
【发布时间】:2013-05-24 20:39:26
【问题描述】:

我的问题是我在 R 终端中安装的包路径与我在 R-studio 中安装的路径不同。所以我想更改安装位置。我怎样才能做到这一点 ?谢谢

【问题讨论】:

标签: r package


【解决方案1】:

R 终端:

您可以将lib 参数传递给指定库位置的install.packages。 见?install.packages:

 lib: character vector giving the library directories where to
      install the packages.  Recycled as needed.  If missing,
      defaults to the first element of ‘.libPaths()’.

工作室:

如果您转到工具 -> 安装包,您可以在对话框中指定安装包的位置。

【讨论】:

    猜你喜欢
    • 2023-03-15
    • 1970-01-01
    • 2010-11-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-06-11
    • 2013-01-22
    • 1970-01-01
    相关资源
    最近更新 更多