With the update, the reprex you gave did work for me (I can retest later)
Agreed, that the reprex runs. Trying to figure out why my original code still errors. Will respond with any additional information as necessary. Appreciate you remediating that initial issue!
If you are able to produce a new reprex that fails, that would help
Iām going to mark your earlier post as a āsolutionā.
The previous add_criterion() that used to completely crash RStudio no longer causes it to crash and a seemingly separate issue with add_criterion (the primary one the reprex was designed to solve) still shows an error but runs to completion, which Iām assuming is a try() or tryCatch() solution which was implemented. Should those errors remain to be shown even if the loo function runs to completion? Perhaps add a line to turn this non-fatal error into an official āwarningā? (see image for what Iām seeing as an end-user)
Edit: just realized I didnāt start this thread so I canāt mark it as a solution, but I consider this solved
Thanks for confirming this.
If I remember correctly, I considered this but couldnāt stop Stan outputting that error message and Stan core developers told that the specific error message canāt be suppressed easily. We donāt want so suppress all error message. I could add an additional informational message that these error messages are not fatal. There is no reason for warning, as the algorithm is working as expected. Iāll recheck the what I can do for the error messages.