在Azure ML

时间:2017-09-27 14:26:00

标签: r azure-machine-learning-studio imputets

我在下面提到了有关在Azure ML中安装附加R包的堆栈溢出查询。但是我收到了错误

Trail 1:为windows安装miniCRAN包(https://cran.r-project.org/web/packages/imputeTS/index.html

Trail 2:为Windows安装ImputeTS包(https://cran.r-project.org/web/packages/miniCRAN/index.html

我双拉链并尝试按照下面的堆栈溢出查询问题。但是,仍面临同样的问题

R版本i使用:CRAN 3.1.0

我需要使用package ImputeTS.

堆栈溢出查询链接: Installing additional R Package on Azure ML

错误1:

    Error 0063: The following error occurred during evaluation of R script:

    ---------- Start of error message from R ----------

    zip file 'src/miniCRAN.zip' not found

错误2:

     Error 0063: The following error occurred during evaluation of R script:

     ---------- Start of error message from R ----------

     zip file 'src/imputeTS.zip' not found

R脚本:

JCI_CO2  <- maml.mapInputPort(1)

library(dplyr)
library(tidyr)
library(lubridate)

#install.packages("src/imputeTS.zip", lib = ".", repos = NULL, verbose = TRUE)
#(success <- library("imputeTS", lib.loc = ".", logical.return = TRUE, verbose = TRUE))

 #library(imputeTS)
 #library(imputeTS,lib.loc = ".")


install.packages("src/miniCRAN.zip", lib = ".", repos = NULL, verbose = TRUE)
(success <- library("miniCRAN", lib.loc = ".", logical.return = TRUE, verbose = TRUE))

library(miniCRAN)
library(miniCRAN,lib.loc = ".")

library(imputeTS)

dt2 <- JCI_CO2 %>%
  mutate(Date.Time = mdy_hm(Date.Time)) %>%
  filter(Date.Time %in% seq(min(Date.Time), max(Date.Time), by = "15 min")) %>%
  complete(Date.Time = seq(min(Date.Time), max(Date.Time), by = "15 min")) %>%
  mutate(RA.CO2 = na.interpolation(RA.CO2)) %>%
  arrange(desc(Date.Time))


  JCI_CO2 <- data.frame(dt2)

  maml.mapOutputPort("JCI_CO2");

注意: 代码中的所有其他软件包,即dplyr,tidyr,lubridate已经是azure ml R软件包的一部分。 我尝试安装的ImputeTS除外。

1 个答案:

答案 0 :(得分:0)

当遇到Execute R或Python Script模块的问题(实际上是所有模块,但对这些模块更有帮助)时,选择模块将在右侧的属性窗格中显示View Output Log链接。这将显示模块的stdout + stderr,它比窗口中最终解析的错误消息更详细。

专门用于诊断&#34;路径不存在&#34;像这样的问题,将Zip文件附加到Exec R / Py的Zip输入端口实际上会将解压缩的完整列表转储到R / Python解释器的上下文中。请用它来确定您提供的路径无法解决的原因。