Hi guys, I’ve screwed things up badly and I can’t figure out how to fix it.
rstan was running well yesterday — modulo the fact that I got the message Jonah alludes to above:
“trying deprecated constructor; please alert package maintainer”. It would try a
deprecated constructor, however, and then work fine as far as I can tell.
At some point I think I accidentally executed install code for rstan or rstanarm while one or both of those was running.
Afterwards, models that were previously working fine started producing the other kinds of errors Johan alludes to, things like this:
Initialization between (-2, 2) failed after 100 attempts.
Try specifying initial values, reducing ranges of constrained values, or reparameterizing the model.
[1] “Error in sampler$call_sampler(args_list[[i]]) : Initialization failed.”
error occurred during calling the sampler; sampling not done
here are whatever error messages were returned:
[[1]] Stan model ‘bernoulli’ does not contain samples.
[[2]] Stan model ‘bernoulli’ does not contain samples.
I don’t know much but it seems like the problem may be in the Mkdirs (which I presume compiles the C code or something.) I changed the model such that it had very simple priors and set various seeds to help it initialize. I reinstalled rstan and rstanarm from Github and Cran and tried all permutations of the above.
I think I’m out of my league and not sure what to do at this point!
Some thoughts:
I called the following:
system(“clang++ -v”)
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.0.0
Thread model: posix
I called the following:
fx ← inline::cxxfunction( signature(x = “integer”, y = “numeric” ) , ’
return ScalarReal( INTEGER(x)[0] * REAL(y)[0] ) )
fx( 2L, 5 ) # should be 10
[1] 10
I just updated to Xquartz 2.7.11 trying to fix things (should that matter).
Also, I’m still running OS 10.10.1 on a Mac (trying to avoid precisely these kinds of problems!).
Should I go here and get the compiler binaries (or whatever): http://r.research.att.com/libs/ (I believe I need Darwin 13…and then execute a sudo command
at the unix command line?).
Note my file path is not the usual “/usr/local/clang4/bin/“. Its /.R/Mkvars. Does that matter? (I’m happy to change this).
Any assistance would be greatly appreciated, I’m pretty desperate! Cheers, Will