R Under development (unstable) (2024-11-11 r87319 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(textAnnotatoR) > > test_check("textAnnotatoR") Success Done Custom error message Success! Completed Custom error message Completed anyway [ FAIL 2 | WARN 3 | SKIP 2 | PASS 91 ] ══ Skipped tests (2) ═══════════════════════════════════════════════════════════ • On Windows (2): 'test-annotate_gui.R:137:3', 'test-directory_management.R:246:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-annotate_gui.R:208:3'): clean_export_path handles Windows paths ── Error in `grepl(sprintf("^%s", export_dir), dir_path)`: invalid regular expression '^D:\temp\2024_11_11_19_25_02_2745\RtmpOmQzhA\textAnnotatoR-tests\exports', reason 'Invalid back reference' Backtrace: ▆ 1. └─textAnnotatoR:::clean_export_path(test_path, create = TRUE) at test-annotate_gui.R:208:3 2. ├─textAnnotatoR:::handle_error(...) 3. └─base::grepl(sprintf("^%s", export_dir), dir_path) ── Error ('test-directory_management.R:317:3'): clean_export_path handles Windows paths ── Error in `grepl(sprintf("^%s", export_dir), dir_path)`: invalid regular expression '^D:\temp\2024_11_11_19_25_02_2745\RtmpOmQzhA\textAnnotatoR-tests\exports', reason 'Invalid back reference' Backtrace: ▆ 1. └─textAnnotatoR:::clean_export_path(test_path, create = TRUE) at test-directory_management.R:317:3 2. ├─textAnnotatoR:::handle_error(...) 3. └─base::grepl(sprintf("^%s", export_dir), dir_path) [ FAIL 2 | WARN 3 | SKIP 2 | PASS 91 ] Error: Test failures Execution halted