I recently update to RStan 2.12.1 on a Windows 10 machine, with R-studio 1.0.44, R 3.3.2(64bit) and Rtools 3.3.x.
While trying to run models I successfully ran with stan 2.10 and 2.11 I got compilation error and a warning.
Error in compileCode(f, code, language = language, verbose = verbose) :
Compilation ERROR, function(s)/method(s) not created! Cannot export (default: symbol not defined
Cannot export 64): symbol not defined
Cannot export ANOMALY:: symbol not defined
Cannot export _ZZNK4stan11variational4adviIN60model346070b25b45_1b5d78b7f9957512a23992987098710a_namespace50model346070b25b45_1b5d78b7f9957512a23992987098710aENS0_16normal_meanfieldEN5boost6random23additive_combine_engineINS6_26linear_congruential_engineIjLj40014ELj0ELj2147483563EEENS8_IjLj40692ELj0ELj2147483399EEEEEE9calc_ELBOERKS4_R[0x7FF81DDF70E3]: symbol not defined
Cannot export is: symbol not defined
Cannot export meaningless: symbol not defined
Cannot export of: symbol not defined
Cannot export operand: symbol not defined
Cannot export size: symbol not defined
Cannot export use: symbol not defined
collect2.exe: error: ld returned 1 exit status
In addition: Warning message:
In if (nchar(CXX) > 0) return(TRUE) :
the condition has length > 1 and only the first element will be used
I am getting the warning(in yellow) for all stan models.
The error is a new one. I noticed that when I change the indexing to a numerical value (e.g: 3) there is no error in compilation. But the warning appears.
Here is my R session info:
R version 3.3.2 (2016-10-31)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
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] shinystan_2.2.1 shiny_0.14.2 rstan_2.12.1 StanHeaders_2.12.0 ggplot2_2.2.0 tidyr_0.6.0
[7] dplyr_0.5.0 plyr_1.8.4 magrittr_1.5
loaded via a namespace (and not attached):
[1] Rcpp_0.12.7 colourpicker_0.2 shinyjs_0.8 base64enc_0.1-3 tools_3.3.2 xts_0.9-7 digest_0.6.10
[8] jsonlite_1.1 tibble_1.2 gtable_0.2.0 lattice_0.20-34 Matrix_1.2-7.1 DBI_0.5-1 parallel_3.3.2
[15] gridExtra_2.2.1 stringr_1.1.0 gtools_3.5.0 dygraphs_1.1.1.3 htmlwidgets_0.8 stats4_3.3.2 grid_3.3.2
[22] DT_0.2 inline_0.3.14 R6_2.2.0 reshape2_1.4.2 shinythemes_1.1.1 scales_0.4.1 threejs_0.2.2
[29] htmltools_0.3.5 rsconnect_0.5 assertthat_0.1 mime_0.5 xtable_1.8-2 colorspace_1.3-0 httpuv_1.3.3
[36] stringi_1.1.2 miniUI_0.1.1 lazyeval_0.2.0 munsell_0.4.3 markdown_0.7.7 zoo_1.7-13
Please help, not able to continue my work.
Thank you in advance.
Best regards
Sreenath Madathil