0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Window7でRStanのインストール時にはまったところ

Posted at

はじめてQiitaで投稿させていただきます。

モチベーション

今から少し前のことになりますが、
仕事でRを使っていて、stanを使ってみたくなりました。
理由は仕事でMCMC使えたら面白そうですし、今後の仕事でも統計モデリングが重要になると思ったからです。
(結果的に、この時点で所属していた会社では使いませんでした :droplet:

Stanについては

Stan: Project Home Page

基本的に
https://github.com/stan-dev/rstan/wiki/RStan-Getting-Started
の通りに行えばいいと思います。

他にも説明や手順などを丁寧に記載したブログが多数ありますので、
詳しくはそちらも参照されたほうがいいです。

はまった点

以下、たぶん関係したことです。
・Rは3.0.2にバージョンアップしたほうがいいです。
・失敗したらRを再起動.RStudioではなく,"R"のほうで作業をしたほうがいいです。

Rtoolsをいれて、RからC++をコンパイルできるようにする。
rstanが依存している”Rcpp”、”inline”packagesを入れて、うまくコンパイルできるかどうか試す。

RStanをinstallする。
CYGWIN worning が出たら環境変数の設定の処方箋を試す。

環境情報

R version 3.0.2 (2013-09-25)
win7 の 32-bit
rstan_2.0.0 Rcpp_0.10.5 inline_0.3.13 devtools_1.3

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?