Running ‘testthat.R’ [16s/20s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(subprocess)
  > 
  > # See for more details:
  > # https://github.com/hadley/testthat/issues/144
  > # https://github.com/hadley/testthat/issues/86
  > # https://github.com/luckyrandom/cmaker/commit/b85813ac2b7aef69932eca8fbb4fa0ec225e0af0
  > #
  > # When R CMD check runs tests, it sets R_TESTS. When the tests
  > # themeselves run R CMD xxxx, as is the case with the tests in
  > # devtools, having R_TESTS set causes errors because it confuses
  > # the R subprocesses. Unsetting it here avoids those problems.
  > #
  > # We need this because we spawn child R processes and they get very
  > # confused if this variable (R_TESTS) is present in their environment.
  > Sys.setenv("R_TESTS" = "")
  > 
  > test_check("subprocess")
  ── 1. Error: child process is terminated in Linux/MacOS/SunOS (@test-termination
  `pid` must be a single integer value
  Backtrace:
   1. testthat::expect_true(wait_until_appears(child_id))
   4. subprocess:::wait_until_appears(child_id)
   5. subprocess::process_exists(handle) /home/ripley/R/packages/tests32/subprocess.Rcheck/tests/helper-processes.R:44:2
   6. base::isTRUE(.Call("C_process_exists", as.integer(x)))
  
  ── 2. Failure: C tests pass (@test-utf8.R#4)  ──────────────────────────────────
  C_tests_utf8() not equal to "All C tests passed!".
  1/1 mismatches
  x[1]: "1 error(s) encountered in C tests, see warnings() for details"
  y[1]: "All C tests passed!"
  
  ── 3. Error: multi-byte can come in parts (@test-utf8.R#23)  ───────────────────
  malformed multibyte string: I/O error
  Backtrace:
   1. testthat::expect_equal(...)
   4. subprocess::process_read(handle1, timeout = TIMEOUT_INFINITE)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 70 | SKIPPED: 2 | WARNINGS: 4 | FAILED: 3 ]
  1. Error: child process is terminated in Linux/MacOS/SunOS (@test-termination.R#85) 
  2. Failure: C tests pass (@test-utf8.R#4) 
  3. Error: multi-byte can come in parts (@test-utf8.R#23) 
  
  Error: testthat unit tests failed
  Execution halted