将TSdist安装到azure R脚本 [英] Install TSdist to azure R script
问题描述
我尝试使用miniCRAN制作的zip文件将TSdist包加载到azure中。我使用的代码如下,
I tried to load the TSdist package to azure by using a zip file made from miniCRAN. The code I used is as follows,
uri_repo< - " file:/// C:/ src / repoCRANwin /"
uri_repo <- "file:///C:/src/repoCRANwin/"
options(repos = uri_repo)
table_packages< - data.frame(package = rownames(available.packages() ))
install.packages(" TSdist")
library(" TSdist")
maml.mapOutputPort(" table_packages" )
options(repos = uri_repo)
table_packages <- data.frame(package = rownames(available.packages()))
install.packages("TSdist")
library("TSdist")
maml.mapOutputPort("table_packages")
并且它给出以下错误
推荐答案
Hi,
当R脚本评估因错误而失败时,会引发此异常。
This exception is raised when R script evaluation fails with an error.
当您在其中一个 R语言模块 在Azure机器学习中,R代码
包含内部语法错误。如果您向R脚本提供错误的输入,也会发生异常。
This error occurs when you have provided an R script in one of the R language modules in Azure Machine Learning, and the R code contains internal syntax errors. The exception can also occur if you provide the wrong inputs to the R script.
如果脚本太大而无法在工作区中执行,也会发生错误。 执行R脚本 模块的最大脚本大小为1,000行或32KB的工作空间,以较小者为准。
The error can also occur if the script is too big to execute in the workspace. The maximum script size for the Execute R Script module is 1,000 lines or 32KB of work space, whichever is lesser.
- 在Azure Machine Learning Studio中,右键单击模块如果出现错误,请选择 查看日志 。
- 检查标准错误日志包含堆栈跟踪的模块。
- 以[ModuleOutput]开头的行表示来自R的输出。
- 来自R的邮件标记为 警告 通常不会导致实验失败。
- In Azure Machine Learning Studio, right-click the module that has the error, and select View Log.
- Examine the standard error log of the module, which contains the stack trace.
- Lines beginning with [ModuleOutput] indicate output from R.
- Messages from R marked as warnings typically do not cause the experiment to fail.
- 检查R语法错误。检查已定义但从未填充的变量。
- 查看输入数据和脚本以确定脚本中的数据或变量是否使用不支持的字符通过Azure机器学习。
- 检查是否已安装所有软件包依赖项。
- 检查是否您的代码加载了默认情况下未加载的必需库。
- 检查所需的包是否是正确的版本。
- 确保要输出的任何数据集都转换为数据框。
问候,
宇通
这篇关于将TSdist安装到azure R脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!