easystats / report

:scroll: :tada: Automated reporting of objects in R
https://easystats.github.io/report/
Other
694 stars 70 forks source link

Fix failing snapshots2: `report.brms` #422

Closed rempsyc closed 6 months ago

rempsyc commented 6 months ago

Snapshots also fail on report.brms:

Failure (test-report.brmsfit.R:17:3): report.brms
Snapshot of code has changed (variant 'windows'):
old[2:42] vs new[2:7]
    report(model, verbose = FALSE)
  Message
    Start sampling
-   Chain 1 Informational Message: The current Metropolis proposal is about to be rejected because of the following issue:
-   Chain 1 Exception: normal_id_glm_lpdf: Scale vector is 0, but must be positive finite! (in 'C:/Users/DL/AppData/Local/Temp/RtmpERRA9z/model-12d437f47a61.stan', line 35, column 4 to column 62)
-   Chain 1 If this warning occurs sporadically, such as for highly constrained variable types like covariance matrices, then the sampler is fine,
-   Chain 1 but if this warning occurs often then your model may be either severely ill-conditioned or misspecified.
-   Chain 1 
-   Chain 2 Informational Message: The current Metropolis proposal is about to be rejected because of the following issue:
-   Chain 2 Exception: normal_id_glm_lpdf: Scale vector is inf, but must be positive finite! (in 'C:/Users/DL/AppData/Local/Temp/RtmpERRA9z/model-12d437f47a61.stan', line 35, column 4 to column 62)
and 31 more ...

Also something about VSCode WebView not working

Failure (test-report_performance.R:79:3): report_performance Bayesian)
Snapshot of code has changed (variant 'windows'):
old vs new
  Code
    report_performance(x5)
- Message
-   VSCode WebView has restricted access to local file.
-   Opening in external browser...
-   Browsing file:///C:/Users/DL/AppData/Local/Temp/RtmpERRA9z/file12d47a7090f_StanProgress.html
  Output
    The model's explanatory power is substantial (R2 = 0.62, 95% CI [0.53, 0.69],
    adj. R2 = 0.61)

Example: https://github.com/easystats/report/actions/runs/8489838472/job/23260331557