简体   繁体   English

无法在Azure ml中安装R库

[英]unable to install R library in azure ml

I have been trying to install a machine learning package that I can use in my R script. 我一直在尝试安装可以在R脚本中使用的机器学习软件包。

I have done placed the tarball of the installer inside a zip file and am doing 我已经将安装程序的压缩包放在zip文件中,并且正在做

install.packages("src/packagename_2.0-3.tar.gz", repos = NULL, type="source") 

from within the R script. 从R脚本中。 However, the progress indicator just circles indefinitely, and it's not installed in environment. 但是,进度指示器只是无限期地盘旋,并且没有安装在环境中。

How can I install this package? 如何安装此软件包?

ada is the package I'm trying to install and ada_2.0-3.tar.gz is the file I'm using. ada是我要安装的软件包,而ada_2.0-3.tar.gz是我正在使用的文件。

You cannot use the tarball packages. 您不能使用tarball软件包。 If you are on windows you need to do the following: 如果您在Windows上,则需要执行以下操作:

Once you install a package (+ it's dependencies) it will download the packages in a directory 一旦安装了软件包(+依赖项),它将在目录中下载软件包

C:\\Users\\xxxxx\\AppData\\Local\\Temp\\some directory name\\downloaded_packages C:\\ Users \\ xxxxx \\ AppData \\ Local \\ Temp \\一些目录名\\ downloaded_pa​​ckages

These will be in a zip format. 这些将采用zip格式。 These are the packages you need. 这些是您需要的软件包。

Or download the windows binaries from cran. 或从cran下载Windows二进制文件。

Next you need to put all the needed packages in one total zip-file and upload this to AzureML as a new dataset. 接下来,您需要将所有需要的包放入一个总的zip文件中,并将其作为新数据集上传到AzureML。

in AzureML load the data package connected to a r-script 在AzureML中加载连接到R脚本的数据包

install.packages("src/ada.zip", lib = ".", repos = NULL, verbose = TRUE)
library(ada, lib.loc=".", verbose=TRUE)

Be sure to check that all dependent packages are available in Azure. 确保检查所有依赖包在Azure中都可用。 Rpart is available. Rpart可用。

For a complete overview, look at this msdn blog explaining it a bit better with some visuals. 有关完整的概述,请查看此msdn博客,并通过一些视觉效果对其进行更好的解释。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM