Running 'testthat.R'
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > # See https://github.com/r-lib/testthat/issues/86
  > Sys.setenv("R_TESTS" = "")
  > 
  > library(testthat)
  > library(later)
  > 
  > test_check("later")
  Warning message:
  In system(cmd) : 'make' not found
  
  Warning message:
  In system(cmd) : 'make' not found
  
  Warning message:
  In system(cmd) : 'make' not found
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (2)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-c-api.R:4:3): header and DLL API versions match ─────────────────
  Error in `sourceCpp(code = code, env = env, rebuild = rebuild, cacheDir = cacheDir, 
      showOutput = showOutput, verbose = verbose, echo = echo)`: Error 1 occurred building shared library.
  Backtrace:
      █
   1. └─Rcpp::cppFunction(code = "\n      int later_dll_api_version() {\n        int (*dll_api_version)() = (int (*)()) R_GetCCallable(\"later\", \"apiVersion\");\n        return (*dll_api_version)();\n      }\n    ") test-c-api.R:4:2
   2.   └─Rcpp::sourceCpp(...)
  ── Error (test-run_now.R:66:3): run_now wakes up when a background thread calls later() ──
  Error in `Rcpp::sourceCpp(system.file("bgtest.cpp", package = "later"), 
      env = env)`: Error 1 occurred building shared library.
  Backtrace:
      █
   1. └─Rcpp::sourceCpp(...) test-run_now.R:66:2
  ── Error (test-run_now.R:84:3): When callbacks have tied timestamps, they respect order of creation ──
  Error in `Rcpp::sourceCpp(code = "\n    #include <Rcpp.h>\n    #include <later_api.h>\n\n    void* max_seen = 0;\n\n    void callback(void* data) {\n      if (data < max_seen) {\n        Rf_error(\"Bad ordering detected\");\n      }\n      max_seen = data;\n    }\n\n    // [[Rcpp::depends(later)]]\n    // [[Rcpp::export]]\n    void checkLaterOrdering() {\n      max_seen = 0;\n      for (size_t i = 0; i < 10000; i++) {\n        later::later(callback, (void*)i, 0);\n      }\n    }\n    ")`: Error 1 occurred building shared library.
  Backtrace:
      █
   1. └─Rcpp::sourceCpp(code = "\n    #include <Rcpp.h>\n    #include <later_api.h>\n\n    void* max_seen = 0;\n\n    void callback(void* data) {\n      if (data < max_seen) {\n        Rf_error(\"Bad ordering detected\");\n      }\n      max_seen = data;\n    }\n\n    // [[Rcpp::depends(later)]]\n    // [[Rcpp::export]]\n    void checkLaterOrdering() {\n      max_seen = 0;\n      for (size_t i = 0; i < 10000; i++) {\n        later::later(callback, (void*)i, 0);\n      }\n    }\n    ") test-run_now.R:84:2
  
  [ FAIL 3 | WARN 0 | SKIP 2 | PASS 118 ]
  Error: Test failures
  Execution halted