Running 'testthat.R' [37s]
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")
  file100d85f2c10f8.o:file100d85f2c10f8.cpp:(.text+0x371): undefined reference to `_imp__SetDIBitsToDevice@48'
  file100d85f2c10f8.o:file100d85f2c10f8.cpp:(.text$_ZN12cimg_library11CImgDisplay6assignIhEERS0_RKNS_4CImgIT_EEPKcjbb[__ZN12cimg_library11CImgDisplay6assignIhEERS0_RKNS_4CImgIT_EEPKcjbb]+0x227): undefined reference to `_imp__SetDIBitsToDevice@48'
  file100d85f2c10f8.o:file100d85f2c10f8.cpp:(.text$_ZN12cimg_library4cimg6dialogIhEEiPKcS3_S3_S3_S3_S3_S3_S3_RKNS_4CImgIT_EEb[__ZN12cimg_library4cimg6dialogIhEEiPKcS3_S3_S3_S3_S3_S3_S3_RKNS_4CImgIT_EEb]+0x2790): undefined reference to `_imp__SetDIBitsToDevice@48'
  file100d85f2c10f8.o:file100d85f2c10f8.cpp:(.text$_ZN12cimg_library11CImgDisplay6resizeEiib[__ZN12cimg_library11CImgDisplay6resizeEiib]+0x377): undefined reference to `_imp__SetDIBitsToDevice@48'
  file100d85f2c10f8.o:file100d85f2c10f8.cpp:(.text$_ZN12cimg_library11CImgDisplay6resizeEiib[__ZN12cimg_library11CImgDisplay6resizeEiib]+0xd60): undefined reference to `_imp__SetDIBitsToDevice@48'
  file100d85f2c10f8.o:file100d85f2c10f8.cpp:(.text$_ZN12cimg_library11CImgDisplay6resizeEiib[__ZN12cimg_library11CImgDisplay6resizeEiib]+0x130e): more undefined references to `_imp__SetDIBitsToDevice@48' follow
  collect2.exe: error: ld returned 1 exit status
  make[1]: Entering directory `/cygdrive/d/temp/RtmpwX18hm/sourceCpp-i386-w64-mingw32-1.0.4/sourcecpp_100d8f3d63ee'
  d:/Compiler/gcc-4.9.3/mingw_32/bin/g++ -std=gnu++11  -I"D:/RCompile/recent/R/include" -DNDEBUG -Dcimg_r_mode -fpermissive  -I"D:/temp/Rtmp4UdsD2/RLIBS_2192837513c7d/Rcpp/include" -I"D:/temp/Rtmp4UdsD2/RLIBS_2192837513c7d/imager/include" -I"D:/temp/RtmpwX18hm/sourceCpp-i386-w64-mingw32-1.0.4"   -I"d:/Compiler/gcc-4.9.3/local330/include"     -pedantic -O2 -Wall  -mtune=core2 -c file100d85f2c10f8.cpp -o file100d85f2c10f8.o
  d:/Compiler/gcc-4.9.3/mingw_32/bin/g++ -std=gnu++11 -shared -s -static-libgcc -o sourceCpp_2.dll tmp.def file100d85f2c10f8.o -Ld:/Compiler/gcc-4.9.3/local330/lib/i386 -Ld:/Compiler/gcc-4.9.3/local330/lib -LD:/RCompile/recent/R/bin/i386 -lR
  make[1]: Leaving directory `/cygdrive/d/temp/RtmpwX18hm/sourceCpp-i386-w64-mingw32-1.0.4/sourcecpp_100d8f3d63ee'
  make[1]: Entering directory `/cygdrive/d/temp/RtmpwX18hm/sourceCpp-i386-w64-mingw32-1.0.4/sourcecpp_100d8f3d63ee'
  make[1]: Leaving directory `/cygdrive/d/temp/RtmpwX18hm/sourceCpp-i386-w64-mingw32-1.0.4/sourcecpp_100d8f3d63ee'
  -- 1. Error: cpp_plugin (@test_cpp_api.R#14)  ----------------------------------
  Error occurred building shared library.
  Backtrace:
   1. Rcpp::cppFunction(foo.inline, depends = "imager")
   2. Rcpp::sourceCpp(...)
  
  == testthat results  ===========================================================
  [ OK: 18 | SKIPPED: 0 | WARNINGS: 1 | FAILED: 1 ]
  1. Error: cpp_plugin (@test_cpp_api.R#14) 
  
  Error: testthat unit tests failed
  Execution halted