-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
Fix check-test-warnings
workflow: "Global state has changed" in test-report.brmsfit
#448
Comments
It seems this issue arises simply from calling the model <- suppressMessages(suppressWarnings(brms::brm(
mpg ~ qsec + wt,data = mtcars, refresh = 0, iter = 1, seed = 333))) Generates that "Global state has changed" warning. Any pointers here @IndrajeetPatil? Would you suggest opening an issue in the |
Sorry, missed this. I see that you have already created an issue. Let's see if there is any upstream change that takes care of this. If not, we need to think about an alternative strategy to figure out that our code is not changing global state anywhere. Because if just a namespaced function call changes state, there isn't much we can do about it. Maybe we need to restrict this check only to tests that use easystats packages. |
Since there were no reactions to my post for two months, I have opened a new issue on Stan Discourse: https://discourse.mc-stan.org/t/global-state-has-changed-warning/36591 |
Here's the response of Bob Carpenter, one of the core Stan developers, on Stan Discourse:
|
Little update @IndrajeetPatil I asked what we could do if the Stan developers don't fix this and this is the reply I got:
So would you suggest following the path you suggested earlier of restricting this check to easystats packages tests then, at least for |
Yes, absolutely! Thanks for sticking with it for so long 😅 |
ACTUALLY, we just found the source of the issue on stan. It is due of our use of |
How to solve the "Global state has changed" warning in
test-report.brmsfit
? Would close #445https://github.com/easystats/report/actions/runs/9797434007/job/27054023826?pr=447#step:5:196
The text was updated successfully, but these errors were encountered: