I have a model that is working on simulated and real data. Today I tried to give the same model a new dataset. Rstan is choking on the new data and failing to create the sampler, but without much indication why.
Here is all I get from the verbose output:
TRANSLATING MODEL 'HP3_Combined05_4occ' FROM Stan CODE TO C++ CODE NOW.
successful in parsing the Stan model 'HP3_Combined05_4occ'.
CHECKING DATA AND PREPROCESSING FOR MODEL 'HP3_Combined05_4occ' NOW.
COMPILING MODEL 'HP3_Combined05_4occ' NOW.
STARTING SAMPLER FOR MODEL 'HP3_Combined05_4occ' NOW.
trying deprecated constructor; please alert package maintainer
Error in new_CppObject_xp(fields$.module, fields$.pointer, ...) :
no valid constructor available for the argument list
failed to create the sampler; sampling not done
sessionInfo()
R version 3.4.2 (2017-09-28)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] bindrcpp_0.2 loo_1.1.0 rstan_2.17.2 StanHeaders_2.17.1 lubridate_1.7.1 magrittr_1.5 forcats_0.2.0
[8] stringr_1.2.0 dplyr_0.7.4 purrr_0.2.4 readr_1.1.1 tidyr_0.7.2 tibble_1.4.1 ggplot2_2.2.1
[15] tidyverse_1.2.1
loaded via a namespace (and not attached):
[1] tidyselect_0.2.3 reshape2_1.4.3 haven_1.1.0 lattice_0.20-35 colorspace_1.3-2 stats4_3.4.2 yaml_2.1.16
[8] utf8_1.1.2 rlang_0.1.6 pillar_1.0.1 foreign_0.8-69 glue_1.2.0 modelr_0.1.1 readxl_1.0.0
[15] matrixStats_0.52.2 bindr_0.1 plyr_1.8.4 munsell_0.4.3 gtable_0.2.0 cellranger_1.1.0 rvest_0.3.2
[22] codetools_0.2-15 psych_1.7.8 labeling_0.3 inline_0.3.14 parallel_3.4.2 broom_0.4.3 Rcpp_0.12.14
[29] scales_0.5.0 jsonlite_1.5 gridExtra_2.3 mnormt_1.5-5 digest_0.6.13 hms_0.4.0 stringi_1.1.6
[36] cowplot_0.9.2 grid_3.4.2 cli_1.0.0 tools_3.4.2 lazyeval_0.2.1 crayon_1.3.4 pkgconfig_2.0.1
[43] xml2_1.1.1 assertthat_0.2.0 httr_1.3.1 rstudioapi_0.7 R6_2.2.2 nlme_3.1-131 compiler_3.4.2
Output of writeLines(readLines(file.path(Sys.getenv(“HOME”), “.R/Makevars”))):
CXXFLAGS=-O3 -Wno-unused-variable -Wno-unused-function
CXXFLAGS += -Wno-ignored-attributes -Wno-deprecated-declarations