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")
  "/home/ripley/R/Lib32/Rcpp/include/Rcpp/Interrupt.h", line 60: Warning (Anachronism): Formal argument fun of type extern "C" void(*)(void*) in call to R_ToplevelExec(extern "C" void(*)(void*), void*) is being passed void(*)(void*).
  "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 219: Error: The function "snprintf" must have a prototype.
  "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 220: Error: The function "snprintf" must have a prototype.
  "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 221: Error: The function "snprintf" must have a prototype.
  "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 241: Error: The function "snprintf" must have a prototype.
  "/home/ripley/R/Lib32/Rcpp/include/Rcpp/internal/r_coerce.h", line 249: Error: The function "snprintf" must have a prototype.
  "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 95: Warning: enc hides Rcpp::String::enc.
  "/home/ripley/R/Lib32/Rcpp/include/Rcpp/String.h", line 107: Warning: enc hides Rcpp::String::enc.
  "/home/ripley/R/Lib32/Rcpp/include/Rcpp/date_datetime/Datetime.h", line 83: Error: snprintf is not a member of file level.
  "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
  "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
  "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 50: Error: expm1 is not defined.
  "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
  "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
  "/home/ripley/R/Lib32/Rcpp/include/Rcpp/sugar/functions/math.h", line 51: Error: log1p is not defined.
  "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 76: Error: expm1 is not a member of file level.
  "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/unif.h", line 87: Error: expm1 is not a member of file level.
  "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: expm1 is not a member of file level.
  "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 62: Error: log1p is not a member of file level.
  "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 63: Error: expm1 is not a member of file level.
  "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: expm1 is not a member of file level.
  "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
  "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/weibull.h", line 76: Error: log1p is not a member of file level.
  "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 65: Error: log1p is not a member of file level.
  "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 81: Error: log1p is not a member of file level.
  "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 95: Error: log1p is not a member of file level.
  "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 97: Error: log1p is not a member of file level.
  "/home/ripley/R/Lib32/Rcpp/include/Rcpp/stats/logis.h", line 117: Error: log1p is not a member of file level.
  Compilation aborted, too many Error messages.
  make: Fatal error: Command failed for target `bgtest.o'
  Current working directory /tmp/RtmpcKayuU/sourceCpp-i386-pc-solaris2.10-0.12.13/sourcecpp_5ca326b74c2d
  CC -library=stlport4 -I/home/ripley/R/cc/include -DNDEBUG   -I"/home/ripley/R/Lib32/Rcpp/include" -I"/home/ripley/R/Lib32/later/include" -I"/home/ripley/R/Lib32/later" -I/usr/local/include   -KPIC  -O -xlibmil -xtarget=native -nofstore  -c bgtest.cpp -o bgtest.o
  *** Error code 2
  1. Error: run_now wakes up when a background thread calls later() (@test-run_now.R#44) 
  Error 1 occurred building shared library.
  1: Rcpp::sourceCpp(system.file("bgtest.cpp", package = "later"), env = env) at testthat/test-run_now.R:44
  2: stop("Error ", status, " occurred building shared library.")
  
  testthat results ================================================================
  OK: 10 SKIPPED: 0 FAILED: 1
  1. Error: run_now wakes up when a background thread calls later() (@test-run_now.R#44) 
  
  Error: testthat unit tests failed
  Execution halted