The following non-linear fit works under several Linux 16.04 variants. Under Windows, it crashes without a message after printing out the first iteration. Reproduced with Command line R. I have several other Stan files working under Window, so the installation is likely ok.
bt.stan (1.8 KB)
expbeta_fit.R (1.3 KB)
expbetadata.txt (12.7 KB)
Operating System: Windows
Interface Version: rstan
Output of writeLines(readLines(file.path(Sys.getenv(“HOME”), “.R/Makevars”))):
CXXFLAGS=-O3 -mtune=native -march=native -Wno-unused-variable -Wno-ignored-attributes -Wno-deprecated-declarations -Wno-unused-local-typedefs -Wno-unused-function
CXX_STD = CXX11
Output of devtools::session_info("rstan”):
R version 3.4.1 (2017-06-30)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
Matrix products: default
locale:
[1] LC_COLLATE=German_Germany.1252 LC_CTYPE=German_Germany.1252
[3] LC_MONETARY=German_Germany.1252 LC_NUMERIC=C
[5] LC_TIME=German_Germany.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] rstan_2.16.2 StanHeaders_2.16.0-1 ggplot2_2.2.1
loaded via a namespace (and not attached):
[1] Rcpp_0.12.12 grid_3.4.1 plyr_1.8.4 gtable_0.2.0 stats4_3.4.1
[6] scales_0.4.1 rlang_0.1.1 lazyeval_0.2.0 tools_3.4.1 munsell_0.4.3
[11] compiler_3.4.1 inline_0.3.14 colorspace_1.3-2 gridExtra_2.2.1 tibble_1.3.3
>