R Under development (unstable) (2025-08-21 r88668 ucrt) -- "Unsuffered Consequences"
Copyright (C) 2025 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(testthat)
> library(roclang)
>
> test_check("roclang")
Loading required package: dplyr
Attaching package: 'dplyr'
The following object is masked from 'package:testthat':
matches
The following objects are masked from 'package:stats':
filter, lag
The following objects are masked from 'package:base':
intersect, setdiff, setequal, union
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 52 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-extract_roc_text.R:13:3'): extract_roc_text extracts parts of a function documentation ──
extract_roc_text\(stats::lm, "general", "references", NA\) does not match "^Chambers.* J.*M.* \\(1992\\)".
Actual value: "\{\\\\if\{html\}\{\\\\out\{\}\}Chambers JM \(1992\)\.\\n\\\\dQuote\{Linear Models\.\}\\nIn Chambers JM, Hastie TJ \(eds\.\), \\\\emph\{Statistical Models in S\}, chapter 4\.\\nWadsworth & Brooks/Cole\.\\\\if\{html\}\{\\\\out\{\}\}\}\\n Wilkinson, G\. N\. and Rogers, C\. E\. \(1973\)\.\\n Symbolic descriptions of factorial models for analysis of variance\.\\n \\\\emph\{Applied Statistics\}, \\\\bold\{22\}, 392--399\.\\n \\\\ifelse\{text\}\{doi:10\.2307/2346786 \}\{\\\\ifelse\{latex\}\{\\\\href\{https://doi\.org/10\.2307/2346786\}\{doi:10\.2307\\\\out\{\\\\\\\\slash\{\}\}2346786\}\}\{\\\\href\{https://doi\.org/10\.2307/2346786\}\{doi:10\.2307/2346786\}\}\}\."
Backtrace:
▆
1. └─testthat::expect_match(...) at test-extract_roc_text.R:13:3
2. └─testthat:::expect_match_(...)
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 52 ]
Error: Test failures
Execution halted