R Under development (unstable) (2024-12-19 r87451 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 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. > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview > # * https://testthat.r-lib.org/articles/special-files.html > > library(testthat) > library(cpp11tesseract) > > test_check("cpp11tesseract") Error opening data file C:\Users\CRAN\AppData\Roaming\R\data\R\tesseract5\tessdata/enochian.traineddata Please make sure the TESSDATA_PREFIX environment variable is set to your "tessdata" directory. Failed loading language 'enochian' Tesseract couldn't load any languages! [ FAIL 1 | WARN 0 | SKIP 3 | PASS 13 ] ══ Skipped tests (3) ═══════════════════════════════════════════════════════════ • On CRAN (3): 'test-download.R:2:3', 'test-download.R:7:3', 'test-download.R:15:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-ocr.R:10:3'): ocr works with whitelisted characters ────────── ocr(file, engine = numbers) (`actual`) not equal to ".\n-$.0123456789\n" (`expected`). `lines(actual)`: "4." "-$.0123456789" "" `lines(expected)`: "." "-$.0123456789" "" [ FAIL 1 | WARN 0 | SKIP 3 | PASS 13 ] Error: Test failures Execution halted