I have an error message in R saying that the function ‘multi_student_t_log’ is deprecated.
DIAGNOSTIC(S) FROM PARSER: Warning: Deprecated function ‘multi_student_t_log’; please replace suffix ‘_log’ with ‘_lpdf’ for density functions or ‘_lpmf’ for mass functions
I replaced ‘_log’ with ‘_lpdf’, and checked the syntax to change the ‘,’ into a vertical line ‘|’ as suggested in the documentation:
“real multi_student_t_lpdf (row_vectors y | real nu, row_vectors mu, matrix Sigma)”
But it did not work and produced an error in stanc() “Error in stanc(file = “model.stan”) : c++ exception (unknown reason)”
I’ve just tickled this bug myself on a fresh install of RStudio with RStan 2.16.2 (latest).
Installing Rcpp wasn’t enough in my case - (working on a mac), in addition I had to do:
install.packages("rstan", type ="source")
library(rstan)