我参考了以下有关在 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 版本:CRAN 3.1.0
我需要使用package ImputeTS.
堆栈溢出查询链接: 在 Azure ML 上安装附加 R 包
错误一:
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。