2017-09-27 107 views
0

我介紹了有關在Azure ML中安裝附加R包的以下堆棧溢出查詢。但是我'收到錯誤在Azure ML中安裝額外的R包(ImputeTS R包)ML

徑1:安裝Windows ImputeTS封裝(https://cran.r-project.org/web/packages/miniCRAN/index.html

I雙重壓縮,並試圖按所述:安裝miniCRAN包窗口(https://cran.r-project.org/web/packages/imputeTS/index.html

2步道下面的堆棧溢出查詢問題。但是,仍然面臨着同樣的問題,我使用

[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 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。

回答

0

當遇到Execute R或Python Script模塊(實際上是所有模塊,但對這些模塊更有幫助)的問題時,選擇模塊將在右側的屬性窗格中顯示View Output Log鏈接。這將顯示模塊的stdout + stderr,它比窗口中最終解析的錯誤消息更詳細。

具體的診斷「的路徑不存在」問題就是這樣,附加一個ZIP文件Exec的R/PY的郵編輸入端口實際上將傾倒的什麼解壓縮到其中的R範圍內的全面上市/ Python解釋器。請使用它來確定爲什麼您提供的路徑沒有像您期望的那樣得到解決。