fun_von_mises.stan missing
Closed this issue · 5 comments
I just updated brms, first to 2.22.0 (from CRAN), and then 2.22.1 (from github), and in both cases subsequently received an error regarding a missing file when trying to fit a von Mises model:
In file(con, "r") : cannot open file '/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/brms/chunks/fun_von_mises.stan': No such file or directory
Following my post on the Stan forums, it looks like this is probably related to the other issues here and here.
Yep.
I take it that the following code errors for you?
library(brms)
dat <- data.frame(y = rnorm(10, 0, 0.1))
fit <- brm(y~1, data = dat, family = von_mises())
It does work for me and I cannot find any traces of fun_von_mises.stan in the brms code base. Perhaps you are having some old brms models loaded in your environment that cause this?
I suggest to uninstall brms in a fresh R session (without any objects loaded). Then restart R and install brms in a fresh R session again. After another restart there should really be nothing that would keep R from clinging to some old code.
No, that code runs fine. I'll follow your suggestions---thanks, and sorry to take up your time with something that looks like it isn't actually a bug. [Edit: Just to confirm that doing so resolves the error, and von Mises models are now fitting just fine.]
cool! :-)