关于在Azure ML中安装额外的R包,我引用了下面的堆栈溢出查询。但是我得到了错误
试验1:为windows安装miniCRAN包(https://cran.r-project.org/web/packages/imputeTS/index.html)
试验2:为windows安装ImputeTS包(https://cran.r-project.org/web/packages/miniCRAN/index.html)
I按下面的堆栈溢出查询问题进行了双重压缩和尝试。但是,仍然面临着同样的问题,
我正在使用的R版本: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 foundR脚本:
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包的一部分。,但我正在尝试安装的ImputeTS除外.
发布于 2017-10-31 18:29:04
当遇到Execute R或Python脚本模块(实际上是所有模块,但对这些模块更有帮助)时,选择该模块将在右侧的属性窗格中显示一个View Output Log链接。这将显示模块的stdout + stderr,这比窗口中最后解析的错误消息更详细。
特别是为了诊断"path不存在“这样的问题,将Zip文件附加到Exec R/Py的Zip输入端口实际上会转储被解压缩到R/Python解释器上下文中的内容的完整列表。请使用它来确定为什么您所提供的路径没有如您所期望的那样解决。
https://stackoverflow.com/questions/46450439
复制相似问题