Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fun_von_mises.stan missing #1690

Closed
ps2-2 opened this issue Sep 24, 2024 · 5 comments
Closed

fun_von_mises.stan missing #1690

ps2-2 opened this issue Sep 24, 2024 · 5 comments

Comments

@ps2-2
Copy link

ps2-2 commented Sep 24, 2024

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.

@paul-buerkner
Copy link
Owner

paul-buerkner commented Sep 24, 2024 via email

@ps2-2
Copy link
Author

ps2-2 commented Sep 24, 2024

Yep.

@paul-buerkner
Copy link
Owner

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.

@ps2-2
Copy link
Author

ps2-2 commented Sep 24, 2024

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.]

@paul-buerkner
Copy link
Owner

cool! :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants