Running 'testthat.R' [8s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(imager)
  Loading required package: magrittr
  
  Attaching package: 'magrittr'
  
  The following objects are masked from 'package:testthat':
  
      equals, is_less_than, not
  
  
  Attaching package: 'imager'
  
  The following object is masked from 'package:magrittr':
  
      add
  
  The following objects are masked from 'package:stats':
  
      convolve, spectrum
  
  The following object is masked from 'package:graphics':
  
      frame
  
  The following object is masked from 'package:base':
  
      save.image
  
  > 
  > test_check("imager")
  
  cc1plus.exe: out of memory allocating 65536 bytes
  make[1]: *** [D:/RCompile/recent/R-41~1.3/etc/x64/Makeconf:245: fileec642add2513.o] Error 1
  make[1]: Entering directory '/d/temp/RtmpaQuZAj/sourceCpp-x86_64-w64-mingw32-1.0.9/sourcecpp_ec643d61da0'
  d:/Compiler/rtools40/mingw64/bin/g++ -std=gnu++11  -I"D:/RCompile/recent/R-41~1.3/include" -DNDEBUG -Dcimg_r_mode -fpermissive  -I"D:/temp/Rtmp065RVE/RLIBS_e17c35ed676b/Rcpp/include" -I"D:/temp/Rtmp065RVE/RLIBS_e17c35ed676b/imager/include" -I"D:/temp/RtmpaQuZAj/sourceCpp-x86_64-w64-mingw32-1.0.9"   -I"d:/Compiler/gcc-4.9.3/local330/include"     -pedantic -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign  -c fileec642add2513.cpp -o fileec642add2513.o
  make[1]: Leaving directory '/d/temp/RtmpaQuZAj/sourceCpp-x86_64-w64-mingw32-1.0.9/sourcecpp_ec643d61da0'
  [ FAIL 1 | WARN 1 | SKIP 1 | PASS 18 ]
  
  == Skipped tests ===============================================================
  * empty test (1)
  
  == Failed tests ================================================================
  -- Error (test_cpp_api.R:14:1): cpp_plugin -------------------------------------
  Error in `sourceCpp(code = code, env = env, rebuild = rebuild, cacheDir = cacheDir, 
      showOutput = showOutput, verbose = verbose, echo = echo)`: Error 1 occurred building shared library.
  Backtrace:
      x
   1. \-Rcpp::cppFunction(foo.inline, depends = "imager") at test_cpp_api.R:14:0
   2.   \-Rcpp::sourceCpp(...)
  
  [ FAIL 1 | WARN 1 | SKIP 1 | PASS 18 ]
  Error: Test failures
  Execution halted