2017-02-21 126 views
-1

我想从artifactory安装R包,我也需要进行身份验证,但我不知道如何将凭据传递给R中的install.packages:如何从artifactory远程回购和通过凭证安装R包

下面是我试过,但它不工作,但是当我试图用卷曲来查询它的工作原理相同的文件:

install.packages(“扫帚”,回购=“HTTP:// user:pass @ artifactory-url:port/artifactory/cran /“,method = curl,verbose =”true“)

输出:

警告:无法为库http://user:[email protected]:port/artifactory/cran/src/contrib访问指数: 无法打开URL 'http://user:[email protected]:port/artifactory/cran/src/contrib/PACKAGES' 警告消息: 包 '扫帚' 不可用(对于R版本3.3.2)

回答