Running ‘testthat.R’ [15s/18s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(potools)
  > 
  > test_check("potools")
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test-translate-package.R:2:3): translate_package arg checking errors work ──
  `translate_package(c("dplyr", "data.table"))` threw an error with unexpected message.
  Expected match: "Only one package at a time"
  Actual message: "Missing (or not on PATH) system requirements msgmerge, msginit, msgconv.\nThese GNU tools are commonly available from the Linux package manager for your system"
  Backtrace:
      █
   1. ├─testthat::expect_error(...) test-translate-package.R:2:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat:::.capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─potools::translate_package(c("dplyr", "data.table"))
   7.   └─potools:::check_sys_reqs()
   8.     └─potools:::stopf(...)
  ── Failure (test-translate-package.R:3:3): translate_package arg checking errors work ──
  `translate_package(1)` threw an error with unexpected message.
  Expected match: "'dir' must be a character"
  Actual message: "Missing (or not on PATH) system requirements msgmerge, msginit, msgconv.\nThese GNU tools are commonly available from the Linux package manager for your system"
  Backtrace:
      █
   1. ├─testthat::expect_error(...) test-translate-package.R:3:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat:::.capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─potools::translate_package(1)
   7.   └─potools:::check_sys_reqs()
   8.     └─potools:::stopf(...)
  ── Failure (test-translate-package.R:4:3): translate_package arg checking errors work ──
  `translate_package(languages = 1L)` threw an error with unexpected message.
  Expected match: "'languages' must be a character vector"
  Actual message: "Missing (or not on PATH) system requirements msgmerge, msginit, msgconv.\nThese GNU tools are commonly available from the Linux package manager for your system"
  Backtrace:
      █
   1. ├─testthat::expect_error(...) test-translate-package.R:4:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat:::.capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─potools::translate_package(languages = 1L)
   7.   └─potools:::check_sys_reqs()
   8.     └─potools:::stopf(...)
  ── Failure (test-translate-package.R:5:3): translate_package arg checking errors work ──
  `translate_package(file.path(tempdir(), "abcdefghijklmnopqrstuvwxyz"))` threw an error with unexpected message.
  Expected match: "does not exist"
  Actual message: "Missing (or not on PATH) system requirements msgmerge, msginit, msgconv.\nThese GNU tools are commonly available from the Linux package manager for your system"
  Backtrace:
      █
   1. ├─testthat::expect_error(...) test-translate-package.R:5:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat:::.capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─potools::translate_package(file.path(tempdir(), "abcdefghijklmnopqrstuvwxyz"))
   7.   └─potools:::check_sys_reqs()
   8.     └─potools:::stopf(...)
  ── Failure (test-translate-package.R:9:3): translate_package arg checking errors work ──
  `translate_package(tmp)` threw an error with unexpected message.
  Expected match: "not a directory"
  Actual message: "Missing (or not on PATH) system requirements msgmerge, msginit, msgconv.\nThese GNU tools are commonly available from the Linux package manager for your system"
  Backtrace:
      █
   1. ├─testthat::expect_error(...) test-translate-package.R:9:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat:::.capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─potools::translate_package(tmp)
   7.   └─potools:::check_sys_reqs()
   8.     └─potools:::stopf(...)
  ── Failure (test-translate-package.R:11:3): translate_package arg checking errors work ──
  `translate_package(tempdir())` threw an error with unexpected message.
  Expected match: "not a package (missing DESCRIPTION)"
  Actual message: "Missing (or not on PATH) system requirements msgmerge, msginit, msgconv.\nThese GNU tools are commonly available from the Linux package manager for your system"
  Backtrace:
      █
   1. ├─testthat::expect_error(...) test-translate-package.R:11:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat:::.capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─potools::translate_package(tempdir())
   7.   └─potools:::check_sys_reqs()
   8.     └─potools:::stopf(...)
  ── Failure (test-translate-package.R:15:3): translate_package arg checking errors work ──
  `translate_package(tempdir())` threw an error with unexpected message.
  Expected match: "not a package (missing Package and/or Version"
  Actual message: "Missing (or not on PATH) system requirements msgmerge, msginit, msgconv.\nThese GNU tools are commonly available from the Linux package manager for your system"
  Backtrace:
      █
   1. ├─testthat::expect_error(...) test-translate-package.R:15:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat:::.capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─potools::translate_package(tempdir())
   7.   └─potools:::check_sys_reqs()
   8.     └─potools:::stopf(...)
  ── Failure (test-translate-package.R:18:3): translate_package arg checking errors work ──
  `translate_package(tempdir(), diagnostics = 1L)` threw an error with unexpected message.
  Expected match: "'diagnostics' should be"
  Actual message: "Missing (or not on PATH) system requirements msgmerge, msginit, msgconv.\nThese GNU tools are commonly available from the Linux package manager for your system"
  Backtrace:
      █
   1. ├─testthat::expect_error(...) test-translate-package.R:18:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat:::.capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─potools::translate_package(tempdir(), diagnostics = 1L)
   7.   └─potools:::check_sys_reqs()
   8.     └─potools:::stopf(...)
  ── Failure (test-translate-package.R:19:3): translate_package arg checking errors work ──
  `translate_package(tempdir(), diagnostics = list(1L))` threw an error with unexpected message.
  Expected match: "'diagnostics' should be"
  Actual message: "Missing (or not on PATH) system requirements msgmerge, msginit, msgconv.\nThese GNU tools are commonly available from the Linux package manager for your system"
  Backtrace:
      █
   1. ├─testthat::expect_error(...) test-translate-package.R:19:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat:::.capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─potools::translate_package(tempdir(), diagnostics = list(1L))
   7.   └─potools:::check_sys_reqs()
   8.     └─potools:::stopf(...)
  ── Error (test-translate-package.R:23:3): translate_package handles empty packages ──
  Error: Missing (or not on PATH) system requirements msgmerge, msginit, msgconv.
  These GNU tools are commonly available from the Linux package manager for your system
  Backtrace:
      █
   1. ├─potools:::restore_package(...) test-translate-package.R:23:2
   2. │ └─utils::capture.output(expr) helpers.R:19:2
   3. │   └─base::withVisible(...elt(i))
   4. ├─testthat::expect_invisible(translate_package(pkg)) test-translate-package.R:26:6
   5. │ └─base::withVisible(call)
   6. └─potools::translate_package(pkg)
   7.   └─potools:::check_sys_reqs()
   8.     └─potools:::stopf(...)
  ── Error (test-translate-package.R:41:3): translate_package works on a simple package ──
  Error: Missing (or not on PATH) system requirements msgmerge, msginit, msgconv.
  These GNU tools are commonly available from the Linux package manager for your system
  Backtrace:
      █
   1. ├─potools:::restore_package(...) test-translate-package.R:41:2
   2. │ └─utils::capture.output(expr) helpers.R:19:2
   3. │   └─base::withVisible(...elt(i))
   4. ├─potools:::expect_messages(...) test-translate-package.R:44:6
   5. │ └─testthat::capture_messages(expr) helpers.R:45:2
   6. │   └─base::withCallingHandlers(...)
   7. └─potools::translate_package(pkg, verbose = TRUE)
   8.   └─potools:::check_sys_reqs()
   9.     └─potools:::stopf(...)
  ── Error (test-translate-package.R:104:3): translate_package works on package with outdated (fuzzy) translations ──
  Error: Missing (or not on PATH) system requirements msgmerge, msginit, msgconv.
  These GNU tools are commonly available from the Linux package manager for your system
  Backtrace:
      █
   1. ├─potools:::restore_package(...) test-translate-package.R:104:2
   2. │ └─utils::capture.output(expr) helpers.R:19:2
   3. │   └─base::withVisible(...elt(i))
   4. ├─potools:::expect_messages(...) test-translate-package.R:108:6
   5. │ └─testthat::capture_messages(expr) helpers.R:45:2
   6. │   └─base::withCallingHandlers(...)
   7. └─potools::translate_package(pkg, "zh_CN", verbose = TRUE)
   8.   └─potools:::check_sys_reqs()
   9.     └─potools:::stopf(...)
  ── Error (test-translate-package.R:120:3): translate_package identifies potential translations in cat() calls ──
  Error: Missing (or not on PATH) system requirements msgmerge, msginit, msgconv.
  These GNU tools are commonly available from the Linux package manager for your system
  Backtrace:
      █
   1. ├─potools:::restore_package(...) test-translate-package.R:120:2
   2. │ └─utils::capture.output(expr) helpers.R:19:2
   3. │   └─base::withVisible(...elt(i))
   4. ├─potools:::expect_messages(...) test-translate-package.R:124:6
   5. │ └─testthat::capture_messages(expr) helpers.R:45:2
   6. │   └─base::withCallingHandlers(...)
   7. └─potools::translate_package(pkg, "zh_CN")
   8.   └─potools:::check_sys_reqs()
   9.     └─potools:::stopf(...)
  ── Error (test-translate-package.R:148:3): Unknown language flow works correctly ──
  Error: Missing (or not on PATH) system requirements msgmerge, msginit, msgconv.
  These GNU tools are commonly available from the Linux package manager for your system
  Backtrace:
      █
   1. ├─potools:::restore_package(...) test-translate-package.R:148:2
   2. │ └─utils::capture.output(expr) helpers.R:19:2
   3. │   └─base::withVisible(...elt(i))
   4. ├─potools:::expect_messages(...) test-translate-package.R:152:6
   5. │ └─testthat::capture_messages(expr) helpers.R:45:2
   6. │   └─base::withCallingHandlers(...)
   7. └─potools::translate_package(pkg, "ar_SY")
   8.   └─potools:::check_sys_reqs()
   9.     └─potools:::stopf(...)
  ── Failure (test-translate-package.R:174:3): Erroneous messages stop get_specials_metadata ──
  `translate_package(pkg, "zh_CN", diagnostics = NULL)` threw an error with unexpected message.
  Expected match: "Invalid templated message. If any %N$"
  Actual message: "Missing (or not on PATH) system requirements msgmerge, msginit, msgconv.\nThese GNU tools are commonly available from the Linux package manager for your system"
  Backtrace:
       █
    1. ├─potools:::restore_package(...) test-translate-package.R:174:2
    2. │ └─utils::capture.output(expr) helpers.R:19:2
    3. │   └─base::withVisible(...elt(i))
    4. ├─testthat::expect_error(...) test-translate-package.R:178:6
    5. │ └─testthat:::quasi_capture(...)
    6. │   ├─testthat:::.capture(...)
    7. │   │ └─base::withCallingHandlers(...)
    8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. └─potools::translate_package(pkg, "zh_CN", diagnostics = NULL)
   10.   └─potools:::check_sys_reqs()
   11.     └─potools:::stopf(...)
  ── Failure (test-translate-package.R:185:3): Erroneous messages stop get_specials_metadata ──
  `translate_package(pkg, "zh_CN", diagnostics = NULL)` threw an error with unexpected message.
  Expected match: "all messages pointing to the same input"
  Actual message: "Missing (or not on PATH) system requirements msgmerge, msginit, msgconv.\nThese GNU tools are commonly available from the Linux package manager for your system"
  Backtrace:
       █
    1. ├─potools:::restore_package(...) test-translate-package.R:185:2
    2. │ └─utils::capture.output(expr) helpers.R:19:2
    3. │   └─base::withVisible(...elt(i))
    4. ├─testthat::expect_error(...) test-translate-package.R:189:6
    5. │ └─testthat:::quasi_capture(...)
    6. │   ├─testthat:::.capture(...)
    7. │   │ └─base::withCallingHandlers(...)
    8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. └─potools::translate_package(pkg, "zh_CN", diagnostics = NULL)
   10.   └─potools:::check_sys_reqs()
   11.     └─potools:::stopf(...)
  ── Error (test-translate-package.R:198:3): Packages with src code work correctly ──
  Error: Missing (or not on PATH) system requirements msgmerge, msginit, msgconv.
  These GNU tools are commonly available from the Linux package manager for your system
  Backtrace:
      █
   1. ├─potools:::restore_package(...) test-translate-package.R:198:2
   2. │ └─utils::capture.output(expr) helpers.R:19:2
   3. │   └─base::withVisible(...elt(i))
   4. └─potools::translate_package(pkg, "zh_CN", diagnostics = check_untranslated_src) test-translate-package.R:202:6
   5.   └─potools:::check_sys_reqs()
   6.     └─potools:::stopf(...)
  ── Error (test-translate-package.R:245:3): Packages with src code & fuzzy messages work ──
  Error: Missing (or not on PATH) system requirements msgmerge, msginit, msgconv.
  These GNU tools are commonly available from the Linux package manager for your system
  Backtrace:
      █
   1. ├─potools:::restore_package(...) test-translate-package.R:245:2
   2. │ └─utils::capture.output(expr) helpers.R:19:2
   3. │   └─base::withVisible(...elt(i))
   4. ├─potools:::expect_messages(...) test-translate-package.R:249:6
   5. │ └─testthat::capture_messages(expr) helpers.R:45:2
   6. │   └─base::withCallingHandlers(...)
   7. └─potools::translate_package(pkg, "zh_CN", verbose = TRUE)
   8.   └─potools:::check_sys_reqs()
   9.     └─potools:::stopf(...)
  ── Error (test-translate-package.R:265:3): Various edge cases in retrieving/outputting messages in R files are handled ──
  Error: Missing (or not on PATH) system requirements msgmerge, msginit, msgconv.
  These GNU tools are commonly available from the Linux package manager for your system
  Backtrace:
      █
   1. ├─potools:::restore_package(...) test-translate-package.R:265:2
   2. │ └─utils::capture.output(expr) helpers.R:19:2
   3. │   └─base::withVisible(...elt(i))
   4. └─potools::translate_package(pkg, diagnostics = NULL) test-translate-package.R:268:6
   5.   └─potools:::check_sys_reqs()
   6.     └─potools:::stopf(...)
  ── Error (test-translate-package.R:332:3): use_base_rules=FALSE produces our preferred behavior ──
  Error: Missing (or not on PATH) system requirements msgmerge, msginit, msgconv.
  These GNU tools are commonly available from the Linux package manager for your system
  Backtrace:
      █
   1. ├─potools:::restore_package(...) test-translate-package.R:332:2
   2. │ └─utils::capture.output(expr) helpers.R:19:2
   3. │   └─base::withVisible(...elt(i))
   4. └─potools::translate_package(...) test-translate-package.R:336:6
   5.   └─potools:::check_sys_reqs()
   6.     └─potools:::stopf(...)
  ── Error (test-translate-package.R:372:3): use_base_rules=TRUE produces base-aligned behavior ──
  Error: Missing (or not on PATH) system requirements msgmerge, msginit, msgconv.
  These GNU tools are commonly available from the Linux package manager for your system
  Backtrace:
      █
   1. ├─potools:::restore_package(...) test-translate-package.R:372:2
   2. │ └─utils::capture.output(expr) helpers.R:19:2
   3. │   └─base::withVisible(...elt(i))
   4. └─potools::translate_package(...) test-translate-package.R:376:6
   5.   └─potools:::check_sys_reqs()
   6.     └─potools:::stopf(...)
  ── Error (test-translate-package.R:418:3): use_base_rules is auto-detected ─────
  Error: Missing (or not on PATH) system requirements msgmerge, msginit, msgconv.
  These GNU tools are commonly available from the Linux package manager for your system
  Backtrace:
      █
   1. ├─potools:::restore_package(...) test-translate-package.R:418:2
   2. │ └─utils::capture.output(expr) helpers.R:19:2
   3. │   └─base::withVisible(...elt(i))
   4. └─potools::translate_package(pkg, diagnostics = NULL) test-translate-package.R:421:6
   5.   └─potools:::check_sys_reqs()
   6.     └─potools:::stopf(...)
  ── Failure (test-translate-package.R:457:3): translation of 'base' works correctly ──
  `translate_package(pkg, diagnostics = NULL)` threw an error with unexpected message.
  Expected match: "Translation of the 'base' package"
  Actual message: "Missing (or not on PATH) system requirements msgmerge, msginit, msgconv.\nThese GNU tools are commonly available from the Linux package manager for your system"
  Backtrace:
       █
    1. ├─potools:::restore_package(...) test-translate-package.R:457:2
    2. │ └─utils::capture.output(expr) helpers.R:19:2
    3. │   └─base::withVisible(...elt(i))
    4. ├─testthat::expect_error(...) test-translate-package.R:468:6
    5. │ └─testthat:::quasi_capture(...)
    6. │   ├─testthat:::.capture(...)
    7. │   │ └─base::withCallingHandlers(...)
    8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. └─potools::translate_package(pkg, diagnostics = NULL)
   10.   └─potools:::check_sys_reqs()
   11.     └─potools:::stopf(...)
  ── Failure (test-translate-package.R:457:3): translation of 'base' works correctly ──
  `translate_package(pkg, diagnostics = NULL)` threw an error with unexpected message.
  Expected match: "Translation of the 'base' package"
  Actual message: "Missing (or not on PATH) system requirements msgmerge, msginit, msgconv.\nThese GNU tools are commonly available from the Linux package manager for your system"
  Backtrace:
       █
    1. ├─potools:::restore_package(...) test-translate-package.R:457:2
    2. │ └─utils::capture.output(expr) helpers.R:19:2
    3. │   └─base::withVisible(...elt(i))
    4. ├─testthat::expect_error(...) test-translate-package.R:476:6
    5. │ └─testthat:::quasi_capture(...)
    6. │   ├─testthat:::.capture(...)
    7. │   │ └─base::withCallingHandlers(...)
    8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. └─potools::translate_package(pkg, diagnostics = NULL)
   10.   └─potools:::check_sys_reqs()
   11.     └─potools:::stopf(...)
  ── Error (test-translate-package.R:457:3): translation of 'base' works correctly ──
  Error: Missing (or not on PATH) system requirements msgmerge, msginit, msgconv.
  These GNU tools are commonly available from the Linux package manager for your system
  Backtrace:
      █
   1. ├─potools:::restore_package(...) test-translate-package.R:457:2
   2. │ └─utils::capture.output(expr) helpers.R:19:2
   3. │   └─base::withVisible(...elt(i))
   4. └─potools::translate_package(pkg, diagnostics = NULL) test-translate-package.R:480:6
   5.   └─potools:::check_sys_reqs()
   6.     └─potools:::stopf(...)
  
  [ FAIL 25 | WARN 0 | SKIP 0 | PASS 22 ]
  Error: Test failures
  Execution halted