Rstanの導入

RのMCMCライブラリのRstanの導入

windows 8
64bit
R x64 3.0.2

これに従う.
https://github.com/stan-dev/rstan/wiki/RStan-Getting-Started
(1)基本の整備
バージョンにあったRtoolsのインストール
(2)gccのパスをRtoolsのものにする

(3)インストール

Sys.setenv(MAKEFLAGS = "-j4")
install.packages("rstan", type = "source")

しかし、以下ではまる
fatal error: Eigen/Dense: No such file or directory
以下を参考に
https://groups.google.com/forum/#!topic/stan-users/oB6mI5f-8hA 
必要ファイルをインストール

install.packages("RcppEigen")

もう一度、

Error : package 'ggplot2' 1.0.0 was found, but >= 2.0.0 is required by 'rstan'

と怒られる