Re: [分享] mlr package

看板R_Language作者 (為什麼會流淚)時間9年前 (2016/11/28 20:45), 編輯推噓0(003)
留言3則, 1人參與, 最新討論串4/4 (看更多)
※ 引述《celestialgod (天)》之銘言: : ※ 引述《f496328mm (為什麼會流淚)》之銘言: : : 我用install_github("mlr-org/mlr")去下載 : : 出現以下error : : Downloading GitHub repo mlr-org/mlr@master : : from URL https://api.github.com/repos/mlr-org/mlr/zipball/master : : Installing mlr : : "D:/MRO/R-3.3.0/bin/x64/R" --no-site-file --no-environ --no-save --no-restore : : --quiet CMD INSTALL \ : : "C:/Users/Asus/AppData/Local/Temp/RtmpWul6Rh/devtools1ef451721bb/mlr-org-mlr-211d245" : : --library="D:/MRO/R-3.3.0/library" --install-tests : : * installing *source* package 'mlr' ... : : ** libs : : c:/Rtools/mingw_64/bin/gcc -m64 -I"D:/MRO/R-33~1.0/include" -DNDEBUG : : -I"c:/applications/extsoft/include" -O2 -Wall -std=gnu99 -mtune=core2 -c : : smote.c -o smote.o : : c:/Rtools/mingw_64/bin/gcc -m64 -shared -s -static-libgcc -o mlr.dll tmp.def : : smote.o -Lc:/applications/extsoft/lib/x64 -Lc:/applications/extsoft/lib : : -LD:/MRO/R-33~1.0/bin/x64 -lR : : installing to D:/MRO/R-3.3.0/library/mlr/libs/x64 : : ** R : : Warning: unable to re-encode 'plotViperCharts.R' line 33 : : ** data : : *** moving datasets to lazyload DB : : ** inst : : ** tests : : ** byte-compile and prepare package for lazy loading : : Error : package 'ParamHelpers' 1.7 was found, but >= 1.8 is required by 'mlr' : : ERROR: lazy loading failed for package 'mlr' : : * removing 'D:/MRO/R-3.3.0/library/mlr' : : 錯誤: Command failed (1) : : 有人知道怎解嗎?? : : 我也試著去這下載 : : https://cran.r-project.org/web/packages/mlr/index.html : : 下載 : : Windows binaries: mlr_2.9.zip : : 然後解壓縮放到我的library資料夾中 : : 還是error : : 顯示 : : package ‘BBmisc’ 1.9 was found, but >= 1.10 is required by ‘mlr’ : : 此外: Warning message: : : package ‘mlr’ was built under R version 3.3.2 : : ps: 我目前是使用Microsoft R Open 3.3.0 : : 謝謝 : MRO再裝新版的套件常會有的問題 : 我建議解法是這樣: : library(installr) : require2(stringr) : require2(pipeR) : newRepos <- getOption("repos") %>>% str_replace("\\d{4}-\\d{2}-\\d{2}", : format(Sys.Date(), "%Y-%m-%d")) : options(repos = newRepos) : install.packages("mlr", type = "source") : # Using type='source' avoids the warning of different version of R 先謝謝大大,我用你的解法後,還出現了一些問題,已經解決 首先全部執行完後, 再執行library(mlr) 會出現以下問題 BBmisc ParamHelpers 版本過舊 所以就全部重新install.packages 之後執行library(mlr)只會出現版本過舊的警告,並沒有error出現 Warning messages: 1: package ‘mlr’ was built under R version 3.3.2 2: package ‘ParamHelpers’ was built under R version 3.3.1 看起來是可以用了 感謝 話說MRO多人用嗎? 還是大家都用linux的? -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 114.36.58.108 ※ 文章網址: https://www.ptt.cc/bbs/R_Language/M.1480337121.A.F47.html

11/28 20:48, , 1F
恩恩,你mlr安裝的時候好像沒有用type='source'
11/28 20:48, 1F

11/28 20:48, , 2F
所以還會跳warning,不過基本上是不影響使用
11/28 20:48, 2F

11/28 20:49, , 3F
MRO的人 我就不清楚了 我自己是只用MRO
11/28 20:49, 3F
文章代碼(AID): #1OF2RXz7 (R_Language)
討論串 (同標題文章)
文章代碼(AID): #1OF2RXz7 (R_Language)