- using R version 4.4.1 (2024-06-14 ucrt)
- using platform: x86_64-w64-mingw32
- R was compiled by
gcc.exe (GCC) 13.2.0
GNU Fortran (GCC) 13.2.0
- running under: Windows Server 2022 x64 (build 20348)
- using session charset: UTF-8
- checking for file 'table.glue/DESCRIPTION' ... OK
- this is package 'table.glue' version '0.0.4'
- 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 'table.glue' 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 code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [0s] OK
- checking whether the package can be loaded with stated dependencies ... [0s] OK
- checking whether the package can be unloaded cleanly ... [0s] OK
- checking whether the namespace can be loaded with stated dependencies ... [0s] OK
- checking whether the namespace can be unloaded cleanly ... [0s] OK
- checking loading without being on the library search path ... [0s] 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 ... [3s] 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 ... [1s] ERROR
Running examples in 'table.glue-Ex.R' failed
The error most likely occurred in:
> ### Name: format_big
> ### Title: Format values left of decimal
> ### Aliases: format_big
>
> ### ** Examples
>
>
> big_x <- 1234567
>
> rspec <- format_big(round_spec(), mark = '|', interval = 3)
>
> table_value(big_x, rspec) # returns "1|234|567"
Error in glue_data(.x = NULL, ..., .sep = .sep, .envir = .envir, .open = .open, :
is.environment(.envir) is not TRUE
Calls: table_value -> <Anonymous> -> glue_data -> stopifnot
Execution halted
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [2s] ERROR
Running 'testthat.R' [2s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(table.glue)
>
> test_check("table.glue")
[ FAIL 8 | WARN 0 | SKIP 0 | PASS 52 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-round_spec.R:40:3'): formatting works ──────────────────────────
Error in `glue_data(.x = NULL, ..., .sep = .sep, .envir = .envir, .open = .open,
.close = .close, .na = .na, .null = .null, .comment = .comment,
.literal = .literal, .transformer = .transformer, .trim = .trim)`: is.environment(.envir) is not TRUE
Backtrace:
▆
1. ├─testthat::expect_equal(table_value(1000.234567, rspec), "1big000decimal!23oh noes45oh noes7") at test-round_spec.R:40:3
2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─table.glue::table_value(1000.234567, rspec)
5. └─glue::glue("{round_using}_{round_half}", .envir = .rspec)
6. └─glue::glue_data(...)
7. └─base::stopifnot(is.environment(.envir))
── Error ('test-table_glue.R:11:3'): unnamed inputs are caught ─────────────────
Error: Failed to evaluate glue component {..f(x)}
Caused by error in `glue_data()`:
! is.environment(.envir) is not TRUE
Backtrace:
▆
1. ├─table.glue (local) ..f(x)
2. │ ├─base::trimws(table_value(x, rspec = .rspec))
3. │ │ ├─base (local) mysub(...)
4. │ │ │ └─base::sub(re, "", x, perl = TRUE)
5. │ │ │ └─base::is.factor(x)
6. │ │ └─base (local) mysub(paste0("^", whitespace, "+"), x)
7. │ │ └─base::sub(re, "", x, perl = TRUE)
8. │ │ └─base::is.factor(x)
9. │ └─table.glue::table_value(x, rspec = .rspec)
10. │ └─glue::glue("{round_using}_{round_half}", .envir = .rspec)
11. │ └─glue::glue_data(...)
12. │ └─base::stopifnot(is.environment(.envir))
13. │ └─base::stop(simpleError(msg, call = if (p <- sys.parent(1L)) sys.call(p)))
14. └─glue (local) `<fn>`(`<smplErrr>`)
15. └─rlang::abort(message, parent = cnd, call = NULL)
── Error ('test-table_pvalue.R:7:3'): missings are handled correctly ───────────
Error in `glue_data(.x = NULL, ..., .sep = .sep, .envir = .envir, .open = .open,
.close = .close, .na = .na, .null = .null, .comment = .comment,
.literal = .literal, .transformer = .transformer, .trim = .trim)`: is.environment(.envir) is not TRUE
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test-table_pvalue.R:7:3
2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─table.glue::table_pvalue(pvals_missing)
5. └─table.glue::table_value(...)
6. └─glue::glue("{round_using}_{round_half}", .envir = .rspec)
7. └─glue::glue_data(...)
8. └─base::stopifnot(is.environment(.envir))
── Error ('test-table_pvalue.R:28:3'): example values are correct ──────────────
Error in `glue_data(.x = NULL, ..., .sep = .sep, .envir = .envir, .open = .open,
.close = .close, .na = .na, .null = .null, .comment = .comment,
.literal = .literal, .transformer = .transformer, .trim = .trim)`: is.environment(.envir) is not TRUE
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test-table_pvalue.R:28:3
2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─table.glue::table_pvalue(...)
5. └─table.glue::table_value(...)
6. └─glue::glue("{round_using}_{round_half}", .envir = .rspec)
7. └─glue::glue_data(...)
8. └─base::stopifnot(is.environment(.envir))
── Error ('test-table_pvalue.R:52:3'): boundary p-values are not made insignificant ──
Error in `glue_data(.x = NULL, ..., .sep = .sep, .envir = .envir, .open = .open,
.close = .close, .na = .na, .null = .null, .comment = .comment,
.literal = .literal, .transformer = .transformer, .trim = .trim)`: is.environment(.envir) is not TRUE
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test-table_pvalue.R:52:3
2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─table.glue::table_pvalue(pvals_close, alpha = 0.15)
5. └─table.glue::table_value(...)
6. └─glue::glue("{round_using}_{round_half}", .envir = .rspec)
7. └─glue::glue_data(...)
8. └─base::stopifnot(is.environment(.envir))
── Error ('test-table_pvalue.R:63:3'): boundaries can be moved ─────────────────
Error in `glue_data(.x = NULL, ..., .sep = .sep, .envir = .envir, .open = .open,
.close = .close, .na = .na, .null = .null, .comment = .comment,
.literal = .literal, .transformer = .transformer, .trim = .trim)`: is.environment(.envir) is not TRUE
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test-table_pvalue.R:63:3
2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─table.glue::table_pvalue(...)
5. └─table.glue::table_value(...)
6. └─glue::glue("{round_using}_{round_half}", .envir = .rspec)
7. └─glue::glue_data(...)
8. └─base::stopifnot(is.environment(.envir))
── Error ('test-table_value.R:29:3'): rounding specifications match intent ─────
Error in `glue_data(.x = NULL, ..., .sep = .sep, .envir = .envir, .open = .open,
.close = .close, .na = .na, .null = .null, .comment = .comment,
.literal = .literal, .transformer = .transformer, .trim = .trim)`: is.environment(.envir) is not TRUE
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test-table_value.R:29:3
2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─table.glue::table_value(x, rspec_sig_1_even)
5. └─glue::glue("{round_using}_{round_half}", .envir = .rspec)
6. └─glue::glue_data(...)
7. └─base::stopifnot(is.environment(.envir))
── Error ('test-table_value.R:77:3'): rounding on boundaries matches specification ──
Error in `glue_data(.x = NULL, ..., .sep = .sep, .envir = .envir, .open = .open,
.close = .close, .na = .na, .null = .null, .comment = .comment,
.literal = .literal, .transformer = .transformer, .trim = .trim)`: is.environment(.envir) is not TRUE
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test-table_value.R:77:3
2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─table.glue::table_value(x, rspec_mag_up)
5. └─glue::glue("{round_using}_{round_half}", .envir = .rspec)
6. └─glue::glue_data(...)
7. └─base::stopifnot(is.environment(.envir))
[ FAIL 8 | WARN 0 | SKIP 0 | PASS 52 ]
Error: Test failures
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [5s] ERROR
Error(s) in re-building vignettes:
--- re-building 'default_rounder.Rmd' using rmarkdown
Quitting from lines 53-58 [unnamed-chunk-4] (default_rounder.Rmd)
Error: processing vignette 'default_rounder.Rmd' failed with diagnostics:
is.environment(.envir) is not TRUE
--- failed re-building 'default_rounder.Rmd'
--- re-building 'table_guide.Rmd' using rmarkdown
Quitting from lines 64-82 [unnamed-chunk-3] (table_guide.Rmd)
Error: processing vignette 'table_guide.Rmd' failed with diagnostics:
ℹ In argument: `tbv_height = table_glue("{height_est} ({height_lwr} -
{height_upr})")`.
ℹ In group 1: `sex = "female"`.
Caused by error:
! Failed to evaluate glue component {..f(height_est)}
Caused by error in `glue_data()`:
! is.environment(.envir) is not TRUE
--- failed re-building 'table_guide.Rmd'
SUMMARY: processing the following files failed:
'default_rounder.Rmd' 'table_guide.Rmd'
Error: Vignette re-building failed.
Execution halted
- checking PDF version of manual ... [28s] OK
- checking HTML version of manual ... [3s] OK
- DONE
Status: 3 ERRORs