- using R Under development (unstable) (2025-11-04 r88982)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc (GCC) 15.1.1 20250521 (Red Hat 15.1.1-2)
GNU Fortran (GCC) 15.1.1 20250521 (Red Hat 15.1.1-2)
- running under: Fedora Linux 42 (Workstation Edition)
- using session charset: UTF-8
- using option ‘--no-stop-on-test-error’
- checking for file ‘latex2exp/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘latex2exp’ version ‘0.9.6’
- 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 executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘latex2exp’ can be installed ... [6s/12s] OK
See the install log for details.
- 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 ... OK
- checking whether the package can be loaded with stated dependencies ... OK
- checking whether the package can be unloaded cleanly ... OK
- checking whether the namespace can be loaded with stated dependencies ... OK
- checking whether the namespace can be unloaded cleanly ... OK
- checking loading without being on the library search path ... 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 ... [8s/13s] OK
- checking Rd files ... OK
- checking Rd metadata ... OK
- checking Rd line widths ... 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 ... OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [12s/18s] ERROR
Running ‘testthat.R’ [12s/17s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(latex2exp)
>
> test_check("latex2exp")
[ FAIL 1 | WARN 1 | SKIP 0 | PASS 100 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test_simple.R:166:3'): Escaped symbols renders correctly ────────────
Error in `str_replace_all(., "\\\\['\\$\\{\\}\\[\\]\\!\\?\\_\\^]", function(char) {
str_c("\\ESCAPED@", as.integer(charToRaw(str_replace_fixed(char,
"\\", ""))), "{}")
})`: `replacement` function must return a vector the same length as the input
(2), not length 1.
Backtrace:
▆
1. ├─latex2exp:::expect_renders_same(...) at test_simple.R:166:3
2. │ └─latex2exp:::.expect_renders(object, expected_expression, negate = FALSE) at tests/testthat/setup.R:30:3
3. │ └─latex2exp::TeX(act$val) at tests/testthat/setup.R:65:5
4. │ └─latex2exp:::parse_latex(input)
5. │ └─... %>% ...
6. ├─stringr::str_replace_all(., "([^\\\\]?)\\\\\\s", "\\1\\\\@SPACE2{}")
7. │ └─stringr:::check_lengths(string, pattern, replacement)
8. │ └─vctrs::vec_size_common(...)
9. ├─stringr::str_replace_all(., "([^\\\\]?)\\\\;", "\\1\\\\@SPACE2{}")
10. │ └─stringr:::check_lengths(string, pattern, replacement)
11. │ └─vctrs::vec_size_common(...)
12. ├─stringr::str_replace_all(., "([^\\\\]?)\\\\,", "\\1\\\\@SPACE1{}")
13. │ └─stringr:::check_lengths(string, pattern, replacement)
14. │ └─vctrs::vec_size_common(...)
15. └─stringr::str_replace_all(...)
16. └─stringr:::str_transform_all(string, pattern, replacement)
17. └─cli::cli_abort(...)
18. └─rlang::abort(...)
[ FAIL 1 | WARN 1 | SKIP 0 | PASS 100 ]
Error: Test failures
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [32s/41s] ERROR
Error(s) in re-building vignettes:
--- re-building ‘supported-commands.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘supported-commands.Rmd’
--- re-building ‘using-latex2exp.Rmd’ using rmarkdown
Quitting from using-latex2exp.Rmd:55-71 [base-plot]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NULL
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'using-latex2exp.Rmd' failed with diagnostics:
`replacement` function must return a vector the same length as the input
(2), not length 1.
--- failed re-building ‘using-latex2exp.Rmd’
SUMMARY: processing the following file failed:
‘using-latex2exp.Rmd’
Error: Vignette re-building failed.
Execution halted
- checking PDF version of manual ... OK
- checking HTML version of manual ... OK
- checking for non-standard things in the check directory ... OK
- checking for detritus in the temp directory ... OK
- DONE
Status: 2 ERRORs