Skip to content

Commit

Permalink
update tests and snapshpts
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Feb 29, 2024
1 parent a983381 commit 37a3003
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ VignetteBuilder:
knitr
Encoding: UTF-8
Language: en-US
RoxygenNote: 7.2.3.9000
RoxygenNote: 7.3.1
Config/testthat/edition: 3
Config/Needs/website:
rstudio/bslib,
Expand Down
1 change: 0 additions & 1 deletion man/report-package.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions tests/testthat/_snaps/windows/report_performance.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

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)
Expand All @@ -10,27 +14,43 @@

Code
summary(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/file12d465985229_StanProgress.html
Output
[1] "The model's explanatory power is substantial (R2 = 0.62, adj. R2 = 0.61)"

---

Code
report_performance(x6)
Message
VSCode WebView has restricted access to local file.
Opening in external browser...
Browsing file:///C:/Users/DL/AppData/Local/Temp/RtmpERRA9z/file12d4560a39d2_StanProgress.html
Output
The model's explanatory power is substantial (R2 = 0.54, 95% CI [0.27, 0.77])

---

Code
summary(report_performance(x6))
Message
VSCode WebView has restricted access to local file.
Opening in external browser...
Browsing file:///C:/Users/DL/AppData/Local/Temp/RtmpERRA9z/file12d452f95d46_StanProgress.html
Output
[1] "The model's explanatory power is substantial (R2 = 0.54)"

# report_performance Bayesian 2)

Code
report_performance(x7)
Message
VSCode WebView has restricted access to local file.
Opening in external browser...
Browsing file:///C:/Users/DL/AppData/Local/Temp/RtmpERRA9z/file12d412fbc1_StanProgress.html
Output
The model's explanatory power is substantial (R2 = 0.83, 95% CI [0.79, 0.86],
adj. R2 = 0.83) and the part related to the fixed effects alone (marginal R2)
Expand All @@ -40,6 +60,10 @@

Code
summary(report_performance(x7))
Message
VSCode WebView has restricted access to local file.
Opening in external browser...
Browsing file:///C:/Users/DL/AppData/Local/Temp/RtmpERRA9z/file12d426713848_StanProgress.html
Output
[1] "The model's explanatory power is substantial (R2 = 0.83, adj. R2 = 0.83) and the part related to the fixed effects alone (marginal R2) is of 0.95"

4 changes: 2 additions & 2 deletions tests/testthat/_snaps/windows/report_s.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Code
report_s(s = 4.2)
Message <simpleMessage>
Message
If the test hypothesis (parameter = 0) and all model assumptions were
true, there is a 5.4% chance of observing this outcome. How weird is
that? It's hardly more surprising than getting 4 heads in a row with
Expand All @@ -12,7 +12,7 @@

Code
report_s(p = 0.06)
Message <simpleMessage>
Message
If the test hypothesis (parameter = 0) and all model assumptions were
true, there is a 6% chance of observing this outcome. How weird is that?
It's hardly more surprising than getting 4 heads in a row with fair coin
Expand Down

0 comments on commit 37a3003

Please sign in to comment.