Last updated on 2025-12-19 23:49:59 CET.
| Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
|---|---|---|---|---|---|---|
| r-devel-linux-x86_64-debian-clang | 0.2.4 | 4.82 | 68.95 | 73.77 | OK | |
| r-devel-linux-x86_64-debian-gcc | 0.2.4 | 3.24 | 40.49 | 43.73 | ERROR | |
| r-devel-linux-x86_64-fedora-clang | 0.2.4 | 9.00 | 87.39 | 96.39 | ERROR | |
| r-devel-linux-x86_64-fedora-gcc | 0.2.4 | 103.27 | ERROR | |||
| r-devel-windows-x86_64 | 0.2.4 | 5.00 | 110.00 | 115.00 | OK | |
| r-patched-linux-x86_64 | 0.2.4 | 5.43 | 60.68 | 66.11 | OK | |
| r-release-linux-x86_64 | 0.2.4 | 4.45 | 61.37 | 65.82 | OK | |
| r-release-macos-arm64 | 0.2.4 | OK | ||||
| r-release-macos-x86_64 | 0.2.4 | 3.00 | 80.00 | 83.00 | OK | |
| r-release-windows-x86_64 | 0.2.4 | 6.00 | 126.00 | 132.00 | OK | |
| r-oldrel-macos-arm64 | 0.2.4 | OK | ||||
| r-oldrel-macos-x86_64 | 0.2.4 | 3.00 | 61.00 | 64.00 | OK | |
| r-oldrel-windows-x86_64 | 0.2.4 | 7.00 | 151.00 | 158.00 | OK |
Version: 0.2.4
Check: examples
Result: ERROR
Running examples in ‘potools-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: check_cracked_messages
> ### Title: Check for cracked messages more suitable for templating
> ### Aliases: check_cracked_messages
>
> ### ** Examples
>
>
> pkg <- file.path(system.file(package = 'potools'), 'pkg')
> # copy to a temporary location to be able to read/write/update below
> tmp_pkg <- file.path(tempdir(), "pkg")
> dir.create(tmp_pkg)
> file.copy(pkg, dirname(tmp_pkg), recursive = TRUE)
[1] TRUE
>
> # first, extract message data
> message_data = get_message_data(tmp_pkg)
Getting R-level messages...
Error in `[.data.table`(msg, , by = c("file", "line1", "col1", "line2", :
attempt access index 11/11 in VECTOR_ELT
Calls: get_message_data -> get_r_messages -> [ -> [.data.table
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.2.4
Check: tests
Result: ERROR
Running ‘testthat.R’ [7s/8s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(potools)
>
> # Failed on Solaris because the command-line tools are missing there (which means tools doesn't work there), #186
> if (isTRUE(check_potools_sys_reqs())) {
+ test_check("potools")
+ } else {
+ writeLines("Skipping tests on system without gettext installed")
+ }
Saving _problems/test-diagnostics-5.R
Saving _problems/test-diagnostics-86.R
Saving _problems/test-get-message-data-5.R
Saving _problems/test-get-message-data-35.R
Saving _problems/test-get-message-data-71.R
Saving _problems/test-get-message-data-106.R
Saving _problems/test-get-message-data-129.R
Saving _problems/test-po_compile-23.R
Starting translations for package 'noMsg'
Getting R-level messages...
Starting translations for package 'rDataPkg'
Saving _problems/test-write-po-file-29.R
[ FAIL 24 | WARN 0 | SKIP 1 | PASS 45 ]
══ Skipped tests (1) ═══════════════════════════════════════════════════════════
• On CRAN (1): 'test-po_create.R:1:1'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-diagnostics.R:5:3'): translate_package works on package with 'cracked' messages needing templates ──
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. └─potools::get_message_data(test_package("r_non_template")) at test-diagnostics.R:5:3
2. └─potools:::get_r_messages(...)
3. ├─...[]
4. └─data.table:::`[.data.table`(...)
── Error ('test-diagnostics.R:86:3'): Diagnostic for unmarked src translations works ──
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. └─potools::get_message_data(test_package("r_src_untranslated")) at test-diagnostics.R:86:3
2. └─potools:::get_r_messages(...)
3. ├─...[]
4. └─data.table:::`[.data.table`(...)
── Error ('test-get-message-data.R:2:3'): Packages with src code & C syntax errors fail gracefully ──
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. ├─testthat::expect_error(...) at test-get-message-data.R:2:3
2. │ └─testthat:::expect_condition_matching_(...)
3. │ └─testthat:::quasi_capture(...)
4. │ ├─testthat (local) .capture(...)
5. │ │ └─base::withCallingHandlers(...)
6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
7. └─potools::get_message_data(test_package("r_src_err_1"))
8. └─potools:::get_r_messages(...)
9. ├─...[]
10. └─data.table:::`[.data.table`(...)
── Error ('test-get-message-data.R:29:3'): Custom translation functions work in R and src ──
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. └─potools::get_message_data(...) at test-get-message-data.R:29:3
2. └─potools:::get_r_messages(...)
3. ├─...[]
4. └─data.table:::`[.data.table`(...)
── Error ('test-get-message-data.R:65:3'): faulty custom_translation_functions specs error ──
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. ├─testthat::expect_error(...) at test-get-message-data.R:65:3
2. │ └─testthat:::expect_condition_matching_(...)
3. │ └─testthat:::quasi_capture(...)
4. │ ├─testthat (local) .capture(...)
5. │ │ └─base::withCallingHandlers(...)
6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
7. └─potools::get_message_data(...)
8. └─potools:::get_r_messages(...)
9. ├─...[]
10. └─data.table:::`[.data.table`(...)
── Error ('test-get-message-data.R:102:3'): Message exclusions are respected ───
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. ├─potools:::expect_all_match(...) at test-get-message-data.R:102:3
2. │ └─base::vapply(...) at ./helpers.R:24:3
3. │ └─potools (local) FUN(X[[i]], ...)
4. │ └─base::grep(target, inputs, ..., invert = invert) at ./helpers.R:26:5
5. │ └─base::is.factor(x)
6. └─potools::get_message_data(test_package("r_msg"))
7. └─potools:::get_r_messages(...)
8. ├─...[]
9. └─data.table:::`[.data.table`(...)
── Error ('test-get-message-data.R:129:3'): Pre-processor macros don't break parentheses matching ──
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. ├─testthat::expect_identical(...) at test-get-message-data.R:129:3
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─potools::get_message_data(test_package("unusual_msg"))
5. └─potools:::get_r_messages(...)
6. ├─...[]
7. └─data.table:::`[.data.table`(...)
── Error ('test-po_compile.R:23:3'): po_compile() can handle UTF-8 msgstr ──────
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. └─potools::po_extract(temp) at test-po_compile.R:23:3
2. └─potools::get_message_data(...)
3. └─potools:::get_r_messages(...)
4. ├─...[]
5. └─data.table:::`[.data.table`(...)
── Error ('test-po_update.R:5:3'): user is told what's happening ───────────────
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. └─potools::po_extract() at test-po_update.R:5:3
2. └─potools::get_message_data(...)
3. └─potools:::get_r_messages(...)
4. ├─...[]
5. └─data.table:::`[.data.table`(...)
── Error ('test-po_update.R:20:3'): user is told what's happening ──────────────
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. └─potools::po_extract() at test-po_update.R:20:3
2. └─potools::get_message_data(...)
3. └─potools:::get_r_messages(...)
4. ├─...[]
5. └─data.table:::`[.data.table`(...)
── Error ('test-translate-package.R:44:7'): translate_package works on a simple package ──
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. ├─potools:::restore_package(...) at test-translate-package.R:41:3
2. │ └─utils::capture.output(expr) at ./helpers.R:19:3
3. │ └─base::withVisible(...elt(i))
4. ├─potools:::expect_messages(...) at test-translate-package.R:44:7
5. │ └─testthat::capture_messages(expr) at ./helpers.R:45:3
6. │ └─base::withCallingHandlers(...)
7. └─potools::translate_package(pkg, verbose = TRUE)
8. └─potools::get_message_data(...)
9. └─potools:::get_r_messages(...)
10. ├─...[]
11. └─data.table:::`[.data.table`(...)
── Error ('test-translate-package.R:110:7'): translate_package works on package with outdated (fuzzy) translations ──
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. ├─potools:::restore_package(...) at test-translate-package.R:106:3
2. │ └─utils::capture.output(expr) at ./helpers.R:19:3
3. │ └─base::withVisible(...elt(i))
4. ├─potools:::expect_messages(...) at test-translate-package.R:110:7
5. │ └─testthat::capture_messages(expr) at ./helpers.R:45:3
6. │ └─base::withCallingHandlers(...)
7. └─potools::translate_package(pkg, "zh_CN", verbose = TRUE)
8. └─potools::get_message_data(...)
9. └─potools:::get_r_messages(...)
10. ├─...[]
11. └─data.table:::`[.data.table`(...)
── Error ('test-translate-package.R:126:7'): translate_package identifies potential translations in cat() calls ──
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. ├─potools:::restore_package(...) at test-translate-package.R:122:3
2. │ └─utils::capture.output(expr) at ./helpers.R:19:3
3. │ └─base::withVisible(...elt(i))
4. ├─potools:::expect_messages(...) at test-translate-package.R:126:7
5. │ └─testthat::capture_messages(expr) at ./helpers.R:45:3
6. │ └─base::withCallingHandlers(...)
7. └─potools::translate_package(pkg, "zh_CN")
8. └─potools::get_message_data(...)
9. └─potools:::get_r_messages(...)
10. ├─...[]
11. └─data.table:::`[.data.table`(...)
── Error ('test-translate-package.R:154:7'): Unknown language flow works correctly ──
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. ├─potools:::restore_package(...) at test-translate-package.R:150:3
2. │ └─utils::capture.output(expr) at ./helpers.R:19:3
3. │ └─base::withVisible(...elt(i))
4. ├─potools:::expect_messages(...) at test-translate-package.R:154:7
5. │ └─testthat::capture_messages(expr) at ./helpers.R:45:3
6. │ └─base::withCallingHandlers(...)
7. └─potools::translate_package(pkg, "cy")
8. └─potools::get_message_data(...)
9. └─potools:::get_r_messages(...)
10. ├─...[]
11. └─data.table:::`[.data.table`(...)
── Error ('test-translate-package.R:207:7'): Erroneous messages stop get_specials_metadata ──
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. ├─potools:::restore_package(...) at test-translate-package.R:203:3
2. │ └─utils::capture.output(expr) at ./helpers.R:19:3
3. │ └─base::withVisible(...elt(i))
4. ├─testthat::expect_error(...) at test-translate-package.R:207:7
5. │ └─testthat:::expect_condition_matching_(...)
6. │ └─testthat:::quasi_capture(...)
7. │ ├─testthat (local) .capture(...)
8. │ │ └─base::withCallingHandlers(...)
9. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
10. └─potools::translate_package(pkg, "zh_CN", diagnostics = NULL)
11. └─potools::get_message_data(...)
12. └─potools:::get_r_messages(...)
13. ├─...[]
14. └─data.table:::`[.data.table`(...)
── Error ('test-translate-package.R:231:7'): Packages with src code work correctly ──
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. ├─potools:::restore_package(...) at test-translate-package.R:227:3
2. │ └─utils::capture.output(expr) at ./helpers.R:19:3
3. │ └─base::withVisible(...elt(i))
4. └─potools::translate_package(pkg, "zh_CN", diagnostics = check_untranslated_src) at test-translate-package.R:231:7
5. └─potools::get_message_data(...)
6. └─potools:::get_r_messages(...)
7. ├─...[]
8. └─data.table:::`[.data.table`(...)
── Error ('test-translate-package.R:301:7'): Packages with src code & fuzzy messages work ──
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. ├─potools:::restore_package(...) at test-translate-package.R:297:3
2. │ └─utils::capture.output(expr) at ./helpers.R:19:3
3. │ └─base::withVisible(...elt(i))
4. ├─potools:::expect_messages(...) at test-translate-package.R:301:7
5. │ └─testthat::capture_messages(expr) at ./helpers.R:45:3
6. │ └─base::withCallingHandlers(...)
7. └─potools::translate_package(pkg, "zh_CN", verbose = TRUE)
8. └─potools::get_message_data(...)
9. └─potools:::get_r_messages(...)
10. ├─...[]
11. └─data.table:::`[.data.table`(...)
── Error ('test-translate-package.R:320:7'): Various edge cases in retrieving/outputting messages in R files are handled ──
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. ├─potools:::restore_package(...) at test-translate-package.R:317:3
2. │ └─utils::capture.output(expr) at ./helpers.R:19:3
3. │ └─base::withVisible(...elt(i))
4. └─potools::translate_package(pkg, diagnostics = NULL) at test-translate-package.R:320:7
5. └─potools::get_message_data(...)
6. └─potools:::get_r_messages(...)
7. ├─...[]
8. └─data.table:::`[.data.table`(...)
── Error ('test-translate-package.R:388:7'): use_base_rules=FALSE produces our preferred behavior ──
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. ├─potools:::restore_package(...) at test-translate-package.R:384:3
2. │ └─utils::capture.output(expr) at ./helpers.R:19:3
3. │ └─base::withVisible(...elt(i))
4. └─potools::translate_package(...) at test-translate-package.R:388:7
5. └─potools::get_message_data(...)
6. └─potools:::get_r_messages(...)
7. ├─...[]
8. └─data.table:::`[.data.table`(...)
── Error ('test-translate-package.R:428:7'): use_base_rules=TRUE produces base-aligned behavior ──
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. ├─potools:::restore_package(...) at test-translate-package.R:424:3
2. │ └─utils::capture.output(expr) at ./helpers.R:19:3
3. │ └─base::withVisible(...elt(i))
4. └─potools::translate_package(...) at test-translate-package.R:428:7
5. └─potools::get_message_data(...)
6. └─potools:::get_r_messages(...)
7. ├─...[]
8. └─data.table:::`[.data.table`(...)
── Error ('test-translate-package.R:473:7'): use_base_rules is auto-detected ───
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. ├─potools:::restore_package(...) at test-translate-package.R:470:3
2. │ └─utils::capture.output(expr) at ./helpers.R:19:3
3. │ └─base::withVisible(...elt(i))
4. └─potools::translate_package(pkg, diagnostics = NULL) at test-translate-package.R:473:7
5. └─potools::get_message_data(...)
6. └─potools:::get_r_messages(...)
7. ├─...[]
8. └─data.table:::`[.data.table`(...)
── Error ('test-translate-package.R:528:7'): translation of 'base' works correctly ──
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. ├─potools:::restore_package(...) at test-translate-package.R:509:3
2. │ └─utils::capture.output(expr) at ./helpers.R:19:3
3. │ └─base::withVisible(...elt(i))
4. ├─testthat::expect_error(...) at test-translate-package.R:528:7
5. │ └─testthat:::expect_condition_matching_(...)
6. │ └─testthat:::quasi_capture(...)
7. │ ├─testthat (local) .capture(...)
8. │ │ └─base::withCallingHandlers(...)
9. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
10. └─potools::translate_package(pkg, diagnostics = NULL)
11. └─potools::get_message_data(...)
12. └─potools:::get_r_messages(...)
13. ├─...[]
14. └─data.table:::`[.data.table`(...)
── Error ('test-translate-package.R:562:7'): max_translations works as expected ──
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. ├─potools:::restore_package(...) at test-translate-package.R:558:3
2. │ └─utils::capture.output(expr) at ./helpers.R:19:3
3. │ └─base::withVisible(...elt(i))
4. └─potools::translate_package(...) at test-translate-package.R:562:7
5. └─potools::get_message_data(...)
6. └─potools:::get_r_messages(...)
7. ├─...[]
8. └─data.table:::`[.data.table`(...)
── Error ('test-write-po-file.R:29:3'): write_po_file works ────────────────────
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. └─potools::get_message_data(test_package("r-devel/src/library/base")) at test-write-po-file.R:29:3
2. └─potools:::get_r_messages(...)
3. ├─...[]
4. └─data.table:::`[.data.table`(...)
[ FAIL 24 | WARN 0 | SKIP 1 | PASS 45 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.2.4
Check: re-building of vignette outputs
Result: ERROR
Error(s) in re-building vignettes:
...
--- re-building ‘custom-diagnostic.Rmd’ using rmarkdown
Quitting from custom-diagnostic.Rmd:110-119 [GreatSpelling]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `[.data.table`:
! attempt access index 11/11 in VECTOR_ELT
---
Backtrace:
▆
1. └─potools::get_message_data("GreatSpelling")
2. └─potools:::get_r_messages(...)
3. ├─...[]
4. └─data.table:::`[.data.table`(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'custom-diagnostic.Rmd' failed with diagnostics:
attempt access index 11/11 in VECTOR_ELT
--- failed re-building ‘custom-diagnostic.Rmd’
--- re-building ‘developers.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘developers.Rmd’
--- re-building ‘translators.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘translators.Rmd’
SUMMARY: processing the following file failed:
‘custom-diagnostic.Rmd’
Error: Vignette re-building failed.
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.2.4
Check: examples
Result: ERROR
Running examples in ‘potools-Ex.R’ failed
The error most likely occurred in:
> ### Name: check_cracked_messages
> ### Title: Check for cracked messages more suitable for templating
> ### Aliases: check_cracked_messages
>
> ### ** Examples
>
>
> pkg <- file.path(system.file(package = 'potools'), 'pkg')
> # copy to a temporary location to be able to read/write/update below
> tmp_pkg <- file.path(tempdir(), "pkg")
> dir.create(tmp_pkg)
> file.copy(pkg, dirname(tmp_pkg), recursive = TRUE)
[1] TRUE
>
> # first, extract message data
> message_data = get_message_data(tmp_pkg)
Getting R-level messages...
Error in `[.data.table`(msg, , by = c("file", "line1", "col1", "line2", :
attempt access index 11/11 in VECTOR_ELT
Calls: get_message_data -> get_r_messages -> [ -> [.data.table
Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
Version: 0.2.4
Check: tests
Result: ERROR
Running ‘testthat.R’ [16s/30s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(potools)
>
> # Failed on Solaris because the command-line tools are missing there (which means tools doesn't work there), #186
> if (isTRUE(check_potools_sys_reqs())) {
+ test_check("potools")
+ } else {
+ writeLines("Skipping tests on system without gettext installed")
+ }
Saving _problems/test-diagnostics-5.R
Saving _problems/test-diagnostics-86.R
Saving _problems/test-get-message-data-5.R
Saving _problems/test-get-message-data-35.R
Saving _problems/test-get-message-data-71.R
Saving _problems/test-get-message-data-106.R
Saving _problems/test-get-message-data-129.R
Saving _problems/test-po_compile-23.R
Starting translations for package 'noMsg'
Getting R-level messages...
Starting translations for package 'rDataPkg'
Saving _problems/test-write-po-file-29.R
[ FAIL 24 | WARN 0 | SKIP 1 | PASS 45 ]
══ Skipped tests (1) ═══════════════════════════════════════════════════════════
• On CRAN (1): 'test-po_create.R:1:1'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-diagnostics.R:5:3'): translate_package works on package with 'cracked' messages needing templates ──
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. └─potools::get_message_data(test_package("r_non_template")) at test-diagnostics.R:5:3
2. └─potools:::get_r_messages(...)
3. ├─...[]
4. └─data.table:::`[.data.table`(...)
── Error ('test-diagnostics.R:86:3'): Diagnostic for unmarked src translations works ──
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. └─potools::get_message_data(test_package("r_src_untranslated")) at test-diagnostics.R:86:3
2. └─potools:::get_r_messages(...)
3. ├─...[]
4. └─data.table:::`[.data.table`(...)
── Error ('test-get-message-data.R:2:3'): Packages with src code & C syntax errors fail gracefully ──
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. ├─testthat::expect_error(...) at test-get-message-data.R:2:3
2. │ └─testthat:::expect_condition_matching_(...)
3. │ └─testthat:::quasi_capture(...)
4. │ ├─testthat (local) .capture(...)
5. │ │ └─base::withCallingHandlers(...)
6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
7. └─potools::get_message_data(test_package("r_src_err_1"))
8. └─potools:::get_r_messages(...)
9. ├─...[]
10. └─data.table:::`[.data.table`(...)
── Error ('test-get-message-data.R:29:3'): Custom translation functions work in R and src ──
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. └─potools::get_message_data(...) at test-get-message-data.R:29:3
2. └─potools:::get_r_messages(...)
3. ├─...[]
4. └─data.table:::`[.data.table`(...)
── Error ('test-get-message-data.R:65:3'): faulty custom_translation_functions specs error ──
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. ├─testthat::expect_error(...) at test-get-message-data.R:65:3
2. │ └─testthat:::expect_condition_matching_(...)
3. │ └─testthat:::quasi_capture(...)
4. │ ├─testthat (local) .capture(...)
5. │ │ └─base::withCallingHandlers(...)
6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
7. └─potools::get_message_data(...)
8. └─potools:::get_r_messages(...)
9. ├─...[]
10. └─data.table:::`[.data.table`(...)
── Error ('test-get-message-data.R:102:3'): Message exclusions are respected ───
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. ├─potools:::expect_all_match(...) at test-get-message-data.R:102:3
2. │ └─base::vapply(...) at ./helpers.R:24:3
3. │ └─potools (local) FUN(X[[i]], ...)
4. │ └─base::grep(target, inputs, ..., invert = invert) at ./helpers.R:26:5
5. │ └─base::is.factor(x)
6. └─potools::get_message_data(test_package("r_msg"))
7. └─potools:::get_r_messages(...)
8. ├─...[]
9. └─data.table:::`[.data.table`(...)
── Error ('test-get-message-data.R:129:3'): Pre-processor macros don't break parentheses matching ──
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. ├─testthat::expect_identical(...) at test-get-message-data.R:129:3
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─potools::get_message_data(test_package("unusual_msg"))
5. └─potools:::get_r_messages(...)
6. ├─...[]
7. └─data.table:::`[.data.table`(...)
── Error ('test-po_compile.R:23:3'): po_compile() can handle UTF-8 msgstr ──────
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. └─potools::po_extract(temp) at test-po_compile.R:23:3
2. └─potools::get_message_data(...)
3. └─potools:::get_r_messages(...)
4. ├─...[]
5. └─data.table:::`[.data.table`(...)
── Error ('test-po_update.R:5:3'): user is told what's happening ───────────────
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. └─potools::po_extract() at test-po_update.R:5:3
2. └─potools::get_message_data(...)
3. └─potools:::get_r_messages(...)
4. ├─...[]
5. └─data.table:::`[.data.table`(...)
── Error ('test-po_update.R:20:3'): user is told what's happening ──────────────
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. └─potools::po_extract() at test-po_update.R:20:3
2. └─potools::get_message_data(...)
3. └─potools:::get_r_messages(...)
4. ├─...[]
5. └─data.table:::`[.data.table`(...)
── Error ('test-translate-package.R:44:7'): translate_package works on a simple package ──
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. ├─potools:::restore_package(...) at test-translate-package.R:41:3
2. │ └─utils::capture.output(expr) at ./helpers.R:19:3
3. │ └─base::withVisible(...elt(i))
4. ├─potools:::expect_messages(...) at test-translate-package.R:44:7
5. │ └─testthat::capture_messages(expr) at ./helpers.R:45:3
6. │ └─base::withCallingHandlers(...)
7. └─potools::translate_package(pkg, verbose = TRUE)
8. └─potools::get_message_data(...)
9. └─potools:::get_r_messages(...)
10. ├─...[]
11. └─data.table:::`[.data.table`(...)
── Error ('test-translate-package.R:110:7'): translate_package works on package with outdated (fuzzy) translations ──
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. ├─potools:::restore_package(...) at test-translate-package.R:106:3
2. │ └─utils::capture.output(expr) at ./helpers.R:19:3
3. │ └─base::withVisible(...elt(i))
4. ├─potools:::expect_messages(...) at test-translate-package.R:110:7
5. │ └─testthat::capture_messages(expr) at ./helpers.R:45:3
6. │ └─base::withCallingHandlers(...)
7. └─potools::translate_package(pkg, "zh_CN", verbose = TRUE)
8. └─potools::get_message_data(...)
9. └─potools:::get_r_messages(...)
10. ├─...[]
11. └─data.table:::`[.data.table`(...)
── Error ('test-translate-package.R:126:7'): translate_package identifies potential translations in cat() calls ──
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. ├─potools:::restore_package(...) at test-translate-package.R:122:3
2. │ └─utils::capture.output(expr) at ./helpers.R:19:3
3. │ └─base::withVisible(...elt(i))
4. ├─potools:::expect_messages(...) at test-translate-package.R:126:7
5. │ └─testthat::capture_messages(expr) at ./helpers.R:45:3
6. │ └─base::withCallingHandlers(...)
7. └─potools::translate_package(pkg, "zh_CN")
8. └─potools::get_message_data(...)
9. └─potools:::get_r_messages(...)
10. ├─...[]
11. └─data.table:::`[.data.table`(...)
── Error ('test-translate-package.R:154:7'): Unknown language flow works correctly ──
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. ├─potools:::restore_package(...) at test-translate-package.R:150:3
2. │ └─utils::capture.output(expr) at ./helpers.R:19:3
3. │ └─base::withVisible(...elt(i))
4. ├─potools:::expect_messages(...) at test-translate-package.R:154:7
5. │ └─testthat::capture_messages(expr) at ./helpers.R:45:3
6. │ └─base::withCallingHandlers(...)
7. └─potools::translate_package(pkg, "cy")
8. └─potools::get_message_data(...)
9. └─potools:::get_r_messages(...)
10. ├─...[]
11. └─data.table:::`[.data.table`(...)
── Error ('test-translate-package.R:207:7'): Erroneous messages stop get_specials_metadata ──
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. ├─potools:::restore_package(...) at test-translate-package.R:203:3
2. │ └─utils::capture.output(expr) at ./helpers.R:19:3
3. │ └─base::withVisible(...elt(i))
4. ├─testthat::expect_error(...) at test-translate-package.R:207:7
5. │ └─testthat:::expect_condition_matching_(...)
6. │ └─testthat:::quasi_capture(...)
7. │ ├─testthat (local) .capture(...)
8. │ │ └─base::withCallingHandlers(...)
9. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
10. └─potools::translate_package(pkg, "zh_CN", diagnostics = NULL)
11. └─potools::get_message_data(...)
12. └─potools:::get_r_messages(...)
13. ├─...[]
14. └─data.table:::`[.data.table`(...)
── Error ('test-translate-package.R:231:7'): Packages with src code work correctly ──
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. ├─potools:::restore_package(...) at test-translate-package.R:227:3
2. │ └─utils::capture.output(expr) at ./helpers.R:19:3
3. │ └─base::withVisible(...elt(i))
4. └─potools::translate_package(pkg, "zh_CN", diagnostics = check_untranslated_src) at test-translate-package.R:231:7
5. └─potools::get_message_data(...)
6. └─potools:::get_r_messages(...)
7. ├─...[]
8. └─data.table:::`[.data.table`(...)
── Error ('test-translate-package.R:301:7'): Packages with src code & fuzzy messages work ──
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. ├─potools:::restore_package(...) at test-translate-package.R:297:3
2. │ └─utils::capture.output(expr) at ./helpers.R:19:3
3. │ └─base::withVisible(...elt(i))
4. ├─potools:::expect_messages(...) at test-translate-package.R:301:7
5. │ └─testthat::capture_messages(expr) at ./helpers.R:45:3
6. │ └─base::withCallingHandlers(...)
7. └─potools::translate_package(pkg, "zh_CN", verbose = TRUE)
8. └─potools::get_message_data(...)
9. └─potools:::get_r_messages(...)
10. ├─...[]
11. └─data.table:::`[.data.table`(...)
── Error ('test-translate-package.R:320:7'): Various edge cases in retrieving/outputting messages in R files are handled ──
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. ├─potools:::restore_package(...) at test-translate-package.R:317:3
2. │ └─utils::capture.output(expr) at ./helpers.R:19:3
3. │ └─base::withVisible(...elt(i))
4. └─potools::translate_package(pkg, diagnostics = NULL) at test-translate-package.R:320:7
5. └─potools::get_message_data(...)
6. └─potools:::get_r_messages(...)
7. ├─...[]
8. └─data.table:::`[.data.table`(...)
── Error ('test-translate-package.R:388:7'): use_base_rules=FALSE produces our preferred behavior ──
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. ├─potools:::restore_package(...) at test-translate-package.R:384:3
2. │ └─utils::capture.output(expr) at ./helpers.R:19:3
3. │ └─base::withVisible(...elt(i))
4. └─potools::translate_package(...) at test-translate-package.R:388:7
5. └─potools::get_message_data(...)
6. └─potools:::get_r_messages(...)
7. ├─...[]
8. └─data.table:::`[.data.table`(...)
── Error ('test-translate-package.R:428:7'): use_base_rules=TRUE produces base-aligned behavior ──
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. ├─potools:::restore_package(...) at test-translate-package.R:424:3
2. │ └─utils::capture.output(expr) at ./helpers.R:19:3
3. │ └─base::withVisible(...elt(i))
4. └─potools::translate_package(...) at test-translate-package.R:428:7
5. └─potools::get_message_data(...)
6. └─potools:::get_r_messages(...)
7. ├─...[]
8. └─data.table:::`[.data.table`(...)
── Error ('test-translate-package.R:473:7'): use_base_rules is auto-detected ───
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. ├─potools:::restore_package(...) at test-translate-package.R:470:3
2. │ └─utils::capture.output(expr) at ./helpers.R:19:3
3. │ └─base::withVisible(...elt(i))
4. └─potools::translate_package(pkg, diagnostics = NULL) at test-translate-package.R:473:7
5. └─potools::get_message_data(...)
6. └─potools:::get_r_messages(...)
7. ├─...[]
8. └─data.table:::`[.data.table`(...)
── Error ('test-translate-package.R:528:7'): translation of 'base' works correctly ──
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. ├─potools:::restore_package(...) at test-translate-package.R:509:3
2. │ └─utils::capture.output(expr) at ./helpers.R:19:3
3. │ └─base::withVisible(...elt(i))
4. ├─testthat::expect_error(...) at test-translate-package.R:528:7
5. │ └─testthat:::expect_condition_matching_(...)
6. │ └─testthat:::quasi_capture(...)
7. │ ├─testthat (local) .capture(...)
8. │ │ └─base::withCallingHandlers(...)
9. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
10. └─potools::translate_package(pkg, diagnostics = NULL)
11. └─potools::get_message_data(...)
12. └─potools:::get_r_messages(...)
13. ├─...[]
14. └─data.table:::`[.data.table`(...)
── Error ('test-translate-package.R:562:7'): max_translations works as expected ──
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. ├─potools:::restore_package(...) at test-translate-package.R:558:3
2. │ └─utils::capture.output(expr) at ./helpers.R:19:3
3. │ └─base::withVisible(...elt(i))
4. └─potools::translate_package(...) at test-translate-package.R:562:7
5. └─potools::get_message_data(...)
6. └─potools:::get_r_messages(...)
7. ├─...[]
8. └─data.table:::`[.data.table`(...)
── Error ('test-write-po-file.R:29:3'): write_po_file works ────────────────────
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. └─potools::get_message_data(test_package("r-devel/src/library/base")) at test-write-po-file.R:29:3
2. └─potools:::get_r_messages(...)
3. ├─...[]
4. └─data.table:::`[.data.table`(...)
[ FAIL 24 | WARN 0 | SKIP 1 | PASS 45 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang
Version: 0.2.4
Check: re-building of vignette outputs
Result: ERROR
Error(s) in re-building vignettes:
--- re-building ‘custom-diagnostic.Rmd’ using rmarkdown
Quitting from custom-diagnostic.Rmd:110-119 [GreatSpelling]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `[.data.table`:
! attempt access index 11/11 in VECTOR_ELT
---
Backtrace:
▆
1. └─potools::get_message_data("GreatSpelling")
2. └─potools:::get_r_messages(...)
3. ├─...[]
4. └─data.table:::`[.data.table`(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'custom-diagnostic.Rmd' failed with diagnostics:
attempt access index 11/11 in VECTOR_ELT
--- failed re-building ‘custom-diagnostic.Rmd’
--- re-building ‘developers.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘developers.Rmd’
--- re-building ‘translators.Rmd’ using rmarkdown
[WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead.
--- finished re-building ‘translators.Rmd’
SUMMARY: processing the following file failed:
‘custom-diagnostic.Rmd’
Error: Vignette re-building failed.
Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
Version: 0.2.4
Check: tests
Result: ERROR
Running ‘testthat.R’ [15s/34s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(potools)
>
> # Failed on Solaris because the command-line tools are missing there (which means tools doesn't work there), #186
> if (isTRUE(check_potools_sys_reqs())) {
+ test_check("potools")
+ } else {
+ writeLines("Skipping tests on system without gettext installed")
+ }
Saving _problems/test-diagnostics-5.R
Saving _problems/test-diagnostics-86.R
Saving _problems/test-get-message-data-5.R
Saving _problems/test-get-message-data-35.R
Saving _problems/test-get-message-data-71.R
Saving _problems/test-get-message-data-106.R
Saving _problems/test-get-message-data-129.R
Saving _problems/test-po_compile-23.R
Starting translations for package 'noMsg'
Getting R-level messages...
Starting translations for package 'rDataPkg'
Saving _problems/test-write-po-file-29.R
[ FAIL 24 | WARN 0 | SKIP 1 | PASS 45 ]
══ Skipped tests (1) ═══════════════════════════════════════════════════════════
• On CRAN (1): 'test-po_create.R:1:1'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-diagnostics.R:5:3'): translate_package works on package with 'cracked' messages needing templates ──
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. └─potools::get_message_data(test_package("r_non_template")) at test-diagnostics.R:5:3
2. └─potools:::get_r_messages(...)
3. ├─...[]
4. └─data.table:::`[.data.table`(...)
── Error ('test-diagnostics.R:86:3'): Diagnostic for unmarked src translations works ──
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. └─potools::get_message_data(test_package("r_src_untranslated")) at test-diagnostics.R:86:3
2. └─potools:::get_r_messages(...)
3. ├─...[]
4. └─data.table:::`[.data.table`(...)
── Error ('test-get-message-data.R:2:3'): Packages with src code & C syntax errors fail gracefully ──
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. ├─testthat::expect_error(...) at test-get-message-data.R:2:3
2. │ └─testthat:::expect_condition_matching_(...)
3. │ └─testthat:::quasi_capture(...)
4. │ ├─testthat (local) .capture(...)
5. │ │ └─base::withCallingHandlers(...)
6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
7. └─potools::get_message_data(test_package("r_src_err_1"))
8. └─potools:::get_r_messages(...)
9. ├─...[]
10. └─data.table:::`[.data.table`(...)
── Error ('test-get-message-data.R:29:3'): Custom translation functions work in R and src ──
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. └─potools::get_message_data(...) at test-get-message-data.R:29:3
2. └─potools:::get_r_messages(...)
3. ├─...[]
4. └─data.table:::`[.data.table`(...)
── Error ('test-get-message-data.R:65:3'): faulty custom_translation_functions specs error ──
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. ├─testthat::expect_error(...) at test-get-message-data.R:65:3
2. │ └─testthat:::expect_condition_matching_(...)
3. │ └─testthat:::quasi_capture(...)
4. │ ├─testthat (local) .capture(...)
5. │ │ └─base::withCallingHandlers(...)
6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
7. └─potools::get_message_data(...)
8. └─potools:::get_r_messages(...)
9. ├─...[]
10. └─data.table:::`[.data.table`(...)
── Error ('test-get-message-data.R:102:3'): Message exclusions are respected ───
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. ├─potools:::expect_all_match(...) at test-get-message-data.R:102:3
2. │ └─base::vapply(...) at ./helpers.R:24:3
3. │ └─potools (local) FUN(X[[i]], ...)
4. │ └─base::grep(target, inputs, ..., invert = invert) at ./helpers.R:26:5
5. │ └─base::is.factor(x)
6. └─potools::get_message_data(test_package("r_msg"))
7. └─potools:::get_r_messages(...)
8. ├─...[]
9. └─data.table:::`[.data.table`(...)
── Error ('test-get-message-data.R:129:3'): Pre-processor macros don't break parentheses matching ──
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. ├─testthat::expect_identical(...) at test-get-message-data.R:129:3
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─potools::get_message_data(test_package("unusual_msg"))
5. └─potools:::get_r_messages(...)
6. ├─...[]
7. └─data.table:::`[.data.table`(...)
── Error ('test-po_compile.R:23:3'): po_compile() can handle UTF-8 msgstr ──────
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. └─potools::po_extract(temp) at test-po_compile.R:23:3
2. └─potools::get_message_data(...)
3. └─potools:::get_r_messages(...)
4. ├─...[]
5. └─data.table:::`[.data.table`(...)
── Error ('test-po_update.R:5:3'): user is told what's happening ───────────────
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. └─potools::po_extract() at test-po_update.R:5:3
2. └─potools::get_message_data(...)
3. └─potools:::get_r_messages(...)
4. ├─...[]
5. └─data.table:::`[.data.table`(...)
── Error ('test-po_update.R:20:3'): user is told what's happening ──────────────
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. └─potools::po_extract() at test-po_update.R:20:3
2. └─potools::get_message_data(...)
3. └─potools:::get_r_messages(...)
4. ├─...[]
5. └─data.table:::`[.data.table`(...)
── Error ('test-translate-package.R:44:7'): translate_package works on a simple package ──
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. ├─potools:::restore_package(...) at test-translate-package.R:41:3
2. │ └─utils::capture.output(expr) at ./helpers.R:19:3
3. │ └─base::withVisible(...elt(i))
4. ├─potools:::expect_messages(...) at test-translate-package.R:44:7
5. │ └─testthat::capture_messages(expr) at ./helpers.R:45:3
6. │ └─base::withCallingHandlers(...)
7. └─potools::translate_package(pkg, verbose = TRUE)
8. └─potools::get_message_data(...)
9. └─potools:::get_r_messages(...)
10. ├─...[]
11. └─data.table:::`[.data.table`(...)
── Error ('test-translate-package.R:110:7'): translate_package works on package with outdated (fuzzy) translations ──
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. ├─potools:::restore_package(...) at test-translate-package.R:106:3
2. │ └─utils::capture.output(expr) at ./helpers.R:19:3
3. │ └─base::withVisible(...elt(i))
4. ├─potools:::expect_messages(...) at test-translate-package.R:110:7
5. │ └─testthat::capture_messages(expr) at ./helpers.R:45:3
6. │ └─base::withCallingHandlers(...)
7. └─potools::translate_package(pkg, "zh_CN", verbose = TRUE)
8. └─potools::get_message_data(...)
9. └─potools:::get_r_messages(...)
10. ├─...[]
11. └─data.table:::`[.data.table`(...)
── Error ('test-translate-package.R:126:7'): translate_package identifies potential translations in cat() calls ──
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. ├─potools:::restore_package(...) at test-translate-package.R:122:3
2. │ └─utils::capture.output(expr) at ./helpers.R:19:3
3. │ └─base::withVisible(...elt(i))
4. ├─potools:::expect_messages(...) at test-translate-package.R:126:7
5. │ └─testthat::capture_messages(expr) at ./helpers.R:45:3
6. │ └─base::withCallingHandlers(...)
7. └─potools::translate_package(pkg, "zh_CN")
8. └─potools::get_message_data(...)
9. └─potools:::get_r_messages(...)
10. ├─...[]
11. └─data.table:::`[.data.table`(...)
── Error ('test-translate-package.R:154:7'): Unknown language flow works correctly ──
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. ├─potools:::restore_package(...) at test-translate-package.R:150:3
2. │ └─utils::capture.output(expr) at ./helpers.R:19:3
3. │ └─base::withVisible(...elt(i))
4. ├─potools:::expect_messages(...) at test-translate-package.R:154:7
5. │ └─testthat::capture_messages(expr) at ./helpers.R:45:3
6. │ └─base::withCallingHandlers(...)
7. └─potools::translate_package(pkg, "cy")
8. └─potools::get_message_data(...)
9. └─potools:::get_r_messages(...)
10. ├─...[]
11. └─data.table:::`[.data.table`(...)
── Error ('test-translate-package.R:207:7'): Erroneous messages stop get_specials_metadata ──
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. ├─potools:::restore_package(...) at test-translate-package.R:203:3
2. │ └─utils::capture.output(expr) at ./helpers.R:19:3
3. │ └─base::withVisible(...elt(i))
4. ├─testthat::expect_error(...) at test-translate-package.R:207:7
5. │ └─testthat:::expect_condition_matching_(...)
6. │ └─testthat:::quasi_capture(...)
7. │ ├─testthat (local) .capture(...)
8. │ │ └─base::withCallingHandlers(...)
9. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
10. └─potools::translate_package(pkg, "zh_CN", diagnostics = NULL)
11. └─potools::get_message_data(...)
12. └─potools:::get_r_messages(...)
13. ├─...[]
14. └─data.table:::`[.data.table`(...)
── Error ('test-translate-package.R:231:7'): Packages with src code work correctly ──
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. ├─potools:::restore_package(...) at test-translate-package.R:227:3
2. │ └─utils::capture.output(expr) at ./helpers.R:19:3
3. │ └─base::withVisible(...elt(i))
4. └─potools::translate_package(pkg, "zh_CN", diagnostics = check_untranslated_src) at test-translate-package.R:231:7
5. └─potools::get_message_data(...)
6. └─potools:::get_r_messages(...)
7. ├─...[]
8. └─data.table:::`[.data.table`(...)
── Error ('test-translate-package.R:301:7'): Packages with src code & fuzzy messages work ──
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. ├─potools:::restore_package(...) at test-translate-package.R:297:3
2. │ └─utils::capture.output(expr) at ./helpers.R:19:3
3. │ └─base::withVisible(...elt(i))
4. ├─potools:::expect_messages(...) at test-translate-package.R:301:7
5. │ └─testthat::capture_messages(expr) at ./helpers.R:45:3
6. │ └─base::withCallingHandlers(...)
7. └─potools::translate_package(pkg, "zh_CN", verbose = TRUE)
8. └─potools::get_message_data(...)
9. └─potools:::get_r_messages(...)
10. ├─...[]
11. └─data.table:::`[.data.table`(...)
── Error ('test-translate-package.R:320:7'): Various edge cases in retrieving/outputting messages in R files are handled ──
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. ├─potools:::restore_package(...) at test-translate-package.R:317:3
2. │ └─utils::capture.output(expr) at ./helpers.R:19:3
3. │ └─base::withVisible(...elt(i))
4. └─potools::translate_package(pkg, diagnostics = NULL) at test-translate-package.R:320:7
5. └─potools::get_message_data(...)
6. └─potools:::get_r_messages(...)
7. ├─...[]
8. └─data.table:::`[.data.table`(...)
── Error ('test-translate-package.R:388:7'): use_base_rules=FALSE produces our preferred behavior ──
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. ├─potools:::restore_package(...) at test-translate-package.R:384:3
2. │ └─utils::capture.output(expr) at ./helpers.R:19:3
3. │ └─base::withVisible(...elt(i))
4. └─potools::translate_package(...) at test-translate-package.R:388:7
5. └─potools::get_message_data(...)
6. └─potools:::get_r_messages(...)
7. ├─...[]
8. └─data.table:::`[.data.table`(...)
── Error ('test-translate-package.R:428:7'): use_base_rules=TRUE produces base-aligned behavior ──
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. ├─potools:::restore_package(...) at test-translate-package.R:424:3
2. │ └─utils::capture.output(expr) at ./helpers.R:19:3
3. │ └─base::withVisible(...elt(i))
4. └─potools::translate_package(...) at test-translate-package.R:428:7
5. └─potools::get_message_data(...)
6. └─potools:::get_r_messages(...)
7. ├─...[]
8. └─data.table:::`[.data.table`(...)
── Error ('test-translate-package.R:473:7'): use_base_rules is auto-detected ───
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. ├─potools:::restore_package(...) at test-translate-package.R:470:3
2. │ └─utils::capture.output(expr) at ./helpers.R:19:3
3. │ └─base::withVisible(...elt(i))
4. └─potools::translate_package(pkg, diagnostics = NULL) at test-translate-package.R:473:7
5. └─potools::get_message_data(...)
6. └─potools:::get_r_messages(...)
7. ├─...[]
8. └─data.table:::`[.data.table`(...)
── Error ('test-translate-package.R:528:7'): translation of 'base' works correctly ──
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. ├─potools:::restore_package(...) at test-translate-package.R:509:3
2. │ └─utils::capture.output(expr) at ./helpers.R:19:3
3. │ └─base::withVisible(...elt(i))
4. ├─testthat::expect_error(...) at test-translate-package.R:528:7
5. │ └─testthat:::expect_condition_matching_(...)
6. │ └─testthat:::quasi_capture(...)
7. │ ├─testthat (local) .capture(...)
8. │ │ └─base::withCallingHandlers(...)
9. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
10. └─potools::translate_package(pkg, diagnostics = NULL)
11. └─potools::get_message_data(...)
12. └─potools:::get_r_messages(...)
13. ├─...[]
14. └─data.table:::`[.data.table`(...)
── Error ('test-translate-package.R:562:7'): max_translations works as expected ──
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. ├─potools:::restore_package(...) at test-translate-package.R:558:3
2. │ └─utils::capture.output(expr) at ./helpers.R:19:3
3. │ └─base::withVisible(...elt(i))
4. └─potools::translate_package(...) at test-translate-package.R:562:7
5. └─potools::get_message_data(...)
6. └─potools:::get_r_messages(...)
7. ├─...[]
8. └─data.table:::`[.data.table`(...)
── Error ('test-write-po-file.R:29:3'): write_po_file works ────────────────────
Error in ``[.data.table`(msg, , by = c("file", "line1", "col1", "line2", "col2"), `:=`(call, build_call(file_lines[[.BY$file]], comments[.(.BY$file, .BY$line1:.BY$line2), .SD, nomatch = NULL], params = .BY)))`: attempt access index 11/11 in VECTOR_ELT
Backtrace:
▆
1. └─potools::get_message_data(test_package("r-devel/src/library/base")) at test-write-po-file.R:29:3
2. └─potools:::get_r_messages(...)
3. ├─...[]
4. └─data.table:::`[.data.table`(...)
[ FAIL 24 | WARN 0 | SKIP 1 | PASS 45 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc