SwissClinicalTrialOrganisation / pkg_validation

R Package Validation trial repo
https://swissclinicaltrialorganisation.github.io/pkg_validation/
0 stars 1 forks source link

[Package test]: statsFail version NA #43

Open aghaynes opened 1 month ago

aghaynes commented 1 month ago

Name

aghaynes

Name of the package you have tested

statsFail

What version of the package have you tested?

NA

Where was the package installed from?

Unknown - enter manually

If the package was installed from GitHub or similar (including r-universe), please provide a commit reference

NA

When was this package tested?

2024-04-16

What was tested?

Tests for package stats

Test results

FAIL

Test output

file context test nb passed skipped error warning
test-lm.R lm lm returns the expected coefficients 2 1 FALSE FALSE 1
test-lm.R lm Standard errors from lm are correct 1 0 FALSE FALSE 0

THE FOLLOWING ERRORS AND/OR WARNINGS WERE GENERATED: [[1]] [[1]][[1]] <expectation_warning/expectation/condition> check.attributes is deprecated; please use ignore_attr instead Backtrace: ▆

  1. └─testthat::expect_equal(coefs[1], means[1], check.attributes = FALSE) at test-lm.R:14:2
  2. └─testthat:::expect_waldo_equal("equal", act, exp, info, ..., tolerance = tolerance)
  3. └─testthat:::waldo_compare(...)
  4. └─waldo::compare(x, y, ..., x_arg = x_arg, y_arg = y_arg)
  5. └─waldo:::compare_opts(...)
  6. └─waldo:::old_opts(...)

[[1]][[2]] <expectation_success/expectation/condition> As expected

[[2]] [[2]][[1]] <expectation_failure/expectation/error/condition> summary(fmod)$coefficients[2, 2] (actual) not equal to 1 (expected).

actual: 1.6 expected: 1.0

Session info

R version 4.3.1 (2023-06-16 ucrt) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 19045)

Matrix products: default

locale: [1] LC_COLLATE=German_Switzerland.utf8 LC_CTYPE=German_Switzerland.utf8 LC_MONETARY=German_Switzerland.utf8 [4] LC_NUMERIC=C LC_TIME=German_Switzerland.utf8

time zone: Europe/Zurich tzcode source: internal

attached base packages: [1] stats graphics grDevices utils datasets methods base

other attached packages: [1] validation_0.3.3 testthat_3.2.0

loaded via a namespace (and not attached): [1] xfun_0.40 httr2_1.0.0 htmlwidgets_1.6.2 devtools_2.4.5 remotes_2.4.2.1 gh_1.4.0 processx_3.8.2
[8] callr_3.7.3 tzdb_0.4.0 vctrs_0.6.4 tools_4.3.1 ps_1.7.5 generics_0.1.3 curl_5.1.0
[15] tibble_3.2.1 fansi_1.0.5 pkgconfig_2.0.3 desc_1.4.2 lifecycle_1.0.3 compiler_4.3.1 stringr_1.5.0
[22] brio_1.1.3 httpuv_1.6.12 htmltools_0.5.6.1 usethis_2.2.3 later_1.3.1 pillar_1.9.0 crayon_1.5.2
[29] urlchecker_1.0.1 tidyr_1.3.0 ellipsis_0.3.2 cranlogs_2.1.1 cachem_1.0.8 sessioninfo_1.2.2 pkgsearch_3.1.3
[36] mime_0.12 tidyselect_1.2.0 digest_0.6.33 stringi_1.7.12 dplyr_1.1.3 diffobj_0.3.5 purrr_1.0.2
[43] rematch2_2.1.2 rprojroot_2.0.3 fastmap_1.1.1 cli_3.6.1 magrittr_2.0.3 pkgbuild_1.4.2 utf8_1.2.4
[50] readr_2.1.4 withr_2.5.2 prettyunits_1.2.0 waldo_0.5.1 promises_1.2.1 rappdirs_0.3.3 lubridate_1.9.3
[57] timechange_0.2.0 httr_1.4.7 gitcreds_0.1.2 hms_1.1.3 memoise_2.0.1 shiny_1.8.0 knitr_1.45
[64] miniUI_0.1.1.1 profvis_0.3.8 rlang_1.1.1 Rcpp_1.0.11 xtable_1.8-4 glue_1.6.2 pkgload_1.3.3
[71] rstudioapi_0.15.0 jsonlite_1.8.7 R6_2.5.1 fs_1.6.3

Where is the test code located for these tests?

please enter manually

Where the test code is located in a git repository, add the git commit SHA

please enter manually, if relevant

github-actions[bot] commented 1 month ago

Tests have failed!

Please investigate: