看板 R_Language 關於我們 聯絡資訊
※ 引述《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 -- R資料整理套件系列文: magrittr #1LhSWhpH (R_Language) https://goo.gl/72l1m9 data.table #1LhW7Tvj (R_Language) https://goo.gl/PZa6Ue dplyr(上.下) #1LhpJCfB,#1Lhw8b-s (R_Language) https://goo.gl/I5xX9b tidyr #1Liqls1R (R_Language) https://goo.gl/i7yzAz pipeR #1NXESRm5 (R_Language) https://goo.gl/zRUISx -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 114.38.130.17 ※ 文章網址: https://www.ptt.cc/bbs/R_Language/M.1480336430.A.266.html