From 37a30030bf68ef6e63e0cbd7872e922ace223f85 Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 29 Feb 2024 08:00:57 +0100 Subject: [PATCH] update tests and snapshpts --- DESCRIPTION | 2 +- man/report-package.Rd | 1 - .../_snaps/windows/report_performance.md | 24 +++++++++++++++++++ tests/testthat/_snaps/windows/report_s.md | 4 ++-- 4 files changed, 27 insertions(+), 4 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 71d0d5f8..38e32b06 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -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, diff --git a/man/report-package.Rd b/man/report-package.Rd index 68600e2f..43f8fa51 100644 --- a/man/report-package.Rd +++ b/man/report-package.Rd @@ -3,7 +3,6 @@ \docType{package} \name{report-package} \alias{report-package} -\alias{_PACKAGE} \title{report: Automated Results Reporting as a Practical Tool to Improve Reproducibility and Methodological Best Practices Adoption} \description{ diff --git a/tests/testthat/_snaps/windows/report_performance.md b/tests/testthat/_snaps/windows/report_performance.md index 76bd46c4..0e669f03 100644 --- a/tests/testthat/_snaps/windows/report_performance.md +++ b/tests/testthat/_snaps/windows/report_performance.md @@ -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) @@ -10,6 +14,10 @@ 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)" @@ -17,6 +25,10 @@ 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]) @@ -24,6 +36,10 @@ 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)" @@ -31,6 +47,10 @@ 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) @@ -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" diff --git a/tests/testthat/_snaps/windows/report_s.md b/tests/testthat/_snaps/windows/report_s.md index e60f51a3..0e3708e3 100644 --- a/tests/testthat/_snaps/windows/report_s.md +++ b/tests/testthat/_snaps/windows/report_s.md @@ -2,7 +2,7 @@ Code report_s(s = 4.2) - Message + 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 @@ -12,7 +12,7 @@ Code report_s(p = 0.06) - Message + 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