- using R version 4.4.2 (2024-10-31 ucrt)
- using platform: x86_64-w64-mingw32
- R was compiled by
gcc.exe (GCC) 13.3.0
GNU Fortran (GCC) 13.3.0
- running under: Windows Server 2022 x64 (build 20348)
- using session charset: UTF-8
- checking for file 'lintr/DESCRIPTION' ... OK
- this is package 'lintr' version '3.1.2'
- 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 'lintr' 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 ... [1s] 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 ... [1s] OK
- checking whether the namespace can be unloaded cleanly ... [1s] OK
- checking loading without being on the library search path ... [1s] OK
- checking whether startup messages can be suppressed ... [1s] 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 ... [13s] OK
- checking Rd files ... [4s] 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 installed files from 'inst/doc' ... OK
- checking files in 'vignettes' ... OK
- checking examples ... [20s] OK
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [130s] ERROR
Running 'testthat.R' [130s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(lintr)
>
> # suppress printing environment name (noisy)
> invisible({
+ loadNamespace("patrick")
+ loadNamespace("withr")
+ })
>
> test_check("lintr")
[ FAIL 2 | WARN 0 | SKIP 1 | PASS 5018 ]
══ Skipped tests (1) ═══════════════════════════════════════════════════════════
• {data.table} is not installed (1): 'test-methods.R:155:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-fixed_regex_linter.R:50:1'): (code run outside of `test_that()`) ──
<purrr_error_indexed/rlang_error/error/condition>
Error in `purrr::pmap(all_pars, build_and_run_test, desc = desc_stub, code = captured,
.interpret_glue = .interpret_glue)`: ℹ In index: 3.
Caused by error in `glue_data()`:
! Expecting '}'
Backtrace:
▆
1. ├─patrick::with_parameters_test_that(...) at test-fixed_regex_linter.R:50:1
2. │ └─purrr::pmap(...)
3. │ └─purrr:::pmap_("list", .l, .f, ..., .progress = .progress)
4. │ ├─purrr:::with_indexed_errors(...)
5. │ │ └─base::withCallingHandlers(...)
6. │ ├─purrr:::call_with_cleanup(...)
7. │ └─patrick (local) .f(char = .l[[1L]][[i]], .test_name = .l[[2L]][[i]], ...)
8. │ └─patrick:::build_description(args, desc, .test_name, .interpret_glue)
9. │ └─glue::glue_data(args, completed_desc)
10. └─base::.handleSimpleError(...)
11. └─purrr (local) h(simpleError(msg, call))
12. └─cli::cli_abort(...)
13. └─rlang::abort(...)
── Error ('test-pipe_continuation_linter.R:182:3'): (code run outside of `test_that()`) ──
<purrr_error_indexed/rlang_error/error/condition>
Error in `purrr::pmap(all_pars, build_and_run_test, desc = desc_stub, code = captured,
.interpret_glue = .interpret_glue)`: ℹ In index: 1.
Caused by error:
! Failed to evaluate glue component {
a %>% b()
}
Caused by error in `b()`:
! could not find function "b"
[ FAIL 2 | WARN 0 | SKIP 1 | PASS 5018 ]
Error: Test failures
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [11s] OK
- checking PDF version of manual ... [28s] OK
- checking HTML version of manual ... [23s] OK
- DONE
Status: 1 ERROR