-
Notifications
You must be signed in to change notification settings - Fork 4
Installation
Hansjörg Plieninger edited this page May 10, 2019
·
2 revisions
What follows is a list of links and hints that might be useful if installing mpt2irt fails or for creating R packages wrapping rstan more general.
In addition to the recommendations in the README, I share the Makevars.win file that lives in C:/Users/plieninger/Documents/.R/ on my Windows computer. This differs a little bit from the ones recommended by the RStan team in Configuration of the C++ Toolchain and create or edit a personal Makevars file, and, to be honest, I have no clue when and why to set it up in either way. The following worked for me:
CXX14FLAGS=-O3 -Wno-unused-variable -Wno-unused-function
CXX14 = $(BINPREF)g++ -m$(WIN) -std=c++1y
CXX11FLAGS=-O3 -Wno-unused-variable -Wno-unused-function
- Step by step guide for creating a package that depends on RStan
- Discussion on how to set up
.travis.yml - Discussion on how to build R packages on Windows (e.g., Makevars, RStudio)
- It is currently not possible to have both Stan code and independent C++ code in one package (see discussions on discourse.mc-stan.org and stackoverflow).