【问题标题】:how to install R packages from artifactory remote repo and pass credentials如何从人工远程仓库安装 R 包并传递凭据
【发布时间】:2017-07-11 18:23:04
【问题描述】:

我正在尝试从 artifactory 安装 R 包,我还需要进行身份验证,但我不确定如何将凭据传递给 R 中的 install.packages:

以下是我尝试过的,但它不起作用,但是当我尝试使用 curl 查询相同的文件时它可以工作:

install.packages('broom',repos="http://user:pass@artifactory-url:port/artifactory/cran/",method=curl,verbose="true")

输出:

警告:无法访问存储库 http://user:pass@artifactory-url:port/artifactory/cran/src/contrib 的索引: 无法打开 URL 'http://user:pass@artifactory-url:port/artifactory/cran/src/contrib/PACKAGES' 警告信息: 包“broom”不可用(适用于 R 版本 3.3.2)

【问题讨论】:

  • AFAIK 您应该将 API 密钥作为“通过”传递(您可以在登录后在 Web UI 中创建,选择“编辑配置文件”并单击 API 密钥的“复制”图标。重要提示:为避免泄露您的个人 API 密钥,您应该将其存储在凭证存储中并使用凭证存储构建 URL(例如,使用包 keyring

标签: r authentication curl artifactory cran


【解决方案1】:

Artifactory 不支持 R 包,欢迎您提出feature request

【讨论】:

    猜你喜欢
    • 2017-06-03
    • 1970-01-01
    • 1970-01-01
    • 2014-02-05
    • 2019-04-03
    • 1970-01-01
    • 1970-01-01
    • 2011-08-18
    相关资源
    最近更新 更多