- using R version 4.3.3 (2024-02-29 ucrt)
- using platform: x86_64-w64-mingw32 (64-bit)
- R was compiled by
gcc.exe (GCC) 12.3.0
GNU Fortran (GCC) 12.3.0
- running under: Windows Server 2022 x64 (build 20348)
- using session charset: UTF-8
- checking for file 'stRoke/DESCRIPTION' ... OK
- this is package 'stRoke' version '23.9.1'
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking whether package 'stRoke' can be installed ... OK
See the install log for details.
- checking installed package size ... OK
- checking package directory ... OK
- checking 'build' directory ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking R files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [2s] OK
- checking whether the package can be loaded with stated dependencies ... [1s] OK
- checking whether the package can be unloaded cleanly ... [1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [2s] OK
- checking whether the namespace can be unloaded cleanly ... [2s] OK
- checking loading without being on the library search path ... [2s] OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [7s] OK
- checking Rd files ... [1s] OK
- checking Rd metadata ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking contents of 'data' directory ... OK
- checking data for non-ASCII characters ... [1s] OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking installed files from 'inst/doc' ... OK
- checking files in 'vignettes' ... OK
- checking examples ... [7s] OK
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [9s] ERROR
Running 'spelling.R' [0s]
Running 'testthat.R' [8s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/tests.html
> # * https://testthat.r-lib.org/reference/test_package.html#special-files
>
> library(testthat)
> library(stRoke)
>
> test_check("stRoke")
Waiting for profiling to be done...
Waiting for profiling to be done...
Waiting for profiling to be done...
Waiting for profiling to be done...
OBS: as per 2007 not all valid CPR numbers apply to modulus 11 rule.
See the vignette 'Toolbox'
> 2 + 2
[1] 4
> 2 + 2
[1] 4
> 2 + 2
[1] 4
[ FAIL 1 | WARN 2 | SKIP 0 | PASS 109 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-generic_stroke.R:4:3'): generic_stroke() runs! ─────────────────
<dplyr:::mutate_error/rlang_error/error/condition>
Error in `dplyr::mutate(.data = .y, stat = as.character(glue::glue(statistic[[.data$variable[1]]],
.envir = cards::get_ard_statistics(.x, .column = "stat_fmt"))))`: i In argument: `stat = as.character(...)`.
Caused by error in `glue_data()`:
! is.environment(.envir) is not TRUE
Backtrace:
▆
1. ├─stRoke::generic_stroke(...) at test-generic_stroke.R:4:3
2. │ ├─gtsummary::add_overall(...)
3. │ │ └─gtsummary:::check_class(x, "gtsummary")
4. │ └─gtsummary::tbl_summary(data = df[, c(group, variables)], by = group)
5. │ ├─base::structure(...)
6. │ ├─base::append(...)
7. │ └─gtsummary::brdg_summary(...)
8. │ ├─dplyr::left_join(...)
9. │ ├─dplyr:::left_join.data.frame(...)
10. │ │ └─dplyr::auto_copy(x, y, copy = copy)
11. │ │ ├─dplyr::same_src(x, y)
12. │ │ └─dplyr:::same_src.data.frame(x, y)
13. │ │ └─base::is.data.frame(y)
14. │ ├─dplyr::bind_rows(...)
15. │ │ └─rlang::list2(...)
16. │ └─gtsummary::pier_summary_continuous(...)
17. │ ├─... %>% ...
18. │ ├─dplyr::bind_rows(...)
19. │ │ └─rlang::list2(...)
20. │ ├─dplyr::group_map(...)
21. │ └─dplyr:::group_map.data.frame(...)
22. │ └─dplyr:::map2(chunks, group_keys, .f, ...)
23. │ └─base::mapply(.f, .x, .y, MoreArgs = list(...), SIMPLIFY = FALSE)
24. │ └─gtsummary (local) `<fn>`(dots[[1L]][[1L]], dots[[2L]][[1L]])
25. │ ├─dplyr::mutate(...)
26. │ └─dplyr:::mutate.data.frame(...)
27. │ └─dplyr:::mutate_cols(.data, dplyr_quosures(...), by)
28. │ ├─base::withCallingHandlers(...)
29. │ └─dplyr:::mutate_col(dots[[i]], data, mask, new_columns)
30. │ └─mask$eval_all_mutate(quo)
31. │ └─dplyr (local) eval()
32. ├─dplyr::left_join(...)
33. ├─dplyr:::left_join.data.frame(...)
34. │ └─dplyr::auto_copy(x, y, copy = copy)
35. │ ├─dplyr::same_src(x, y)
36. │ └─dplyr:::same_src.data.frame(x, y)
37. │ └─base::is.data.frame(y)
38. ├─glue::glue(...)
39. │ └─glue::glue_data(...)
40. │ └─base::stopifnot(is.environment(.envir))
41. │ └─base::stop(simpleError(msg, call = if (p <- sys.parent(1L)) sys.call(p)))
42. └─dplyr (local) `<fn>`(`<smplErrr>`)
43. └─rlang::abort(message, class = error_class, parent = parent, call = error_call)
[ FAIL 1 | WARN 2 | SKIP 0 | PASS 109 ]
Error: Test failures
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes in 'inst/doc' ... OK
- checking re-building of vignette outputs ... [10s] ERROR
Error(s) in re-building vignettes:
--- re-building 'ds2dd.Rmd' using rmarkdown
--- finished re-building 'ds2dd.Rmd'
--- re-building 'toolbox.Rmd' using rmarkdown
Quitting from lines 114-118 [generic_stroke-example] (toolbox.Rmd)
Error: processing vignette 'toolbox.Rmd' failed with diagnostics:
ℹ In argument: `df_stats = list(...)`.
Caused by error in `dplyr::mutate()`:
ℹ In argument: `stat = map(...)`.
Caused by error in `glue_data()`:
! is.environment(.envir) is not TRUE
--- failed re-building 'toolbox.Rmd'
SUMMARY: processing the following file failed:
'toolbox.Rmd'
Error: Vignette re-building failed.
Execution halted
- checking PDF version of manual ... [17s] OK
- checking HTML version of manual ... [5s] OK
- DONE
Status: 2 ERRORs