Skip to content

Instantly share code, notes, and snippets.

@whizzalan
Created August 24, 2016 13:07
Show Gist options
  • Save whizzalan/ebe1e0cf854ab6bd6f3c5b515e06c235 to your computer and use it in GitHub Desktop.
Save whizzalan/ebe1e0cf854ab6bd6f3c5b515e06c235 to your computer and use it in GitHub Desktop.

R Packaegs 相關

tags: R, Packages

MRO 與 MRS 常會遇到的 MRAN 問題

由於 Microsoft R 會自己維護一個 CRAN, 會像是一個 Time Machine 紀錄每段期間相容的套件

getOption("repos")
                                            CRAN 
"https://mran.microsoft.com/snapshot/2016-04-01"

你可能會遇到以下錯誤

install.packages("flexdashboard") Installing package into ‘/home/gg/R/x86_64-pc-linux-gnu-library/3.2’ (as ‘lib’ is unspecified) Warning in install.packages : package ‘flexdashboard’ is not available (for R version 3.2.4)

嘗試強制指定 R packages repository 位置,可以解決

install.packages("flexdashboard", repos = "http://cran.csie.ntu.edu.tw/")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment