* using log directory 'd:/Rcompile/CRANpkg/local/4.5/latex2exp.Rcheck' * using R version 4.5.2 (2025-10-31 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.3.0 GNU Fortran (GCC) 14.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * 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 hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'latex2exp' can be installed ... OK * 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 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 ... [0s] 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 ... [1s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [8s] ERROR Running 'testthat.R' [7s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(latex2exp) > > test_check("latex2exp") Saving _problems/test_simple-166.R [ 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 ./setup.R:30:3 3. │ └─latex2exp::TeX(act$val) at ./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 ... [11s] ERROR Error(s) in re-building vignettes: --- re-building 'supported-commands.Rmd' using rmarkdown --- 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 ... [19s] OK * checking HTML version of manual ... [1s] OK * DONE Status: 2 ERRORs