无法安装自定义R程序包Machine Learning Studio Web服务 [英] Unable to install custom R package Machine Learning Studio Web Service

查看:97
本文介绍了无法安装自定义R程序包Machine Learning Studio Web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

正如标题所述,我正在尝试安装和使用自定义R程序包,然后在Web服务上下文中使用它.

我已经能够成功在Azure Machine Learning Studio(AMLS)GUI中安装和使用该程序包.我尝试按照说明文件说明,自定义软件包应安装并与以下命令一起使用, 执行R脚本块:

非工作脚本:

但是,这不允许我安装和使用该软件包.相反,使用默认库路径使我可以在AMLS中成功使用该模块.这些突击队使我能够安装和使用我的软件包:

工作脚本:

另一种可行的解决方案是将库路径设置为 C:/ThirdParty/library.

当我尝试在Web服务中使用它时,问题就来了.该模型在AMLS中运行良好,并允许我创建Web服务.但是当我尝试使用此服务时,出现以下错误消息:

解决方案

此错误仍然会发生.

As the title says I am trying to install and use a custom R package, and then use this in a webservice context. 

I have been able to install and use the package in the Azure Machine Learning Studio(AMLS) GUI with success. I tried following the documentation stating that custom packages should be installed and used with the following commands in an Execute R script-block:

Non-working script:

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

installed <- library(MyModule, lib.loc = ".", logical.return = TRUE, verbose=TRUE)

This did however not allow me to install and use the package. Instead using the default library path allowed me to use the module successfully in AMLS. These commandoes allowed me to install and use my package:

Working script:

install.packages("src/MyModule.zip", repos = NULL, verbose = TRUE)

installed <- library(MyModule, logical.return = TRUE, verbose=TRUE)

Another working solution was to set the library path to C:/ThirdParty/library.

My problem arrives when I try to use this in a web service. The model runs fine in AMLS and allows me to create a web service. But when I try to use this service i get the following error message: 

{
    "error": {
        "code": "LibraryExecutionError",
        "message": "Module execution encountered an internal library error.",
        "details": [
            {
                "code": "FailedToEvaluateRScript",
                "target": "Execute R Script Piped (RPackage)",
                "message": "The following error occurred during evaluation of R script: R_tryEval: return error: Error in install.packages(\"src/MyModel.zip\") : \n  unable to install packages\n"
            }
        ]
    }
}

解决方案

This error still occurs. 


这篇关于无法安装自定义R程序包Machine Learning Studio Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆