Running 'testthat.R' [29s]
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")
  file1bb88243400b.o:file1bb88243400b.cpp:(.text+0x2df): undefined reference to `__imp_SetDIBitsToDevice'
  file1bb88243400b.o:file1bb88243400b.cpp:(.text$_ZN12cimg_library11CImgDisplay6assignIhEERS0_RKNS_4CImgIT_EEPKcjbb[_ZN12cimg_library11CImgDisplay6assignIhEERS0_RKNS_4CImgIT_EEPKcjbb]+0x397): undefined reference to `__imp_SetDIBitsToDevice'
  file1bb88243400b.o:file1bb88243400b.cpp:(.text$_ZN12cimg_library4cimg6dialogIhEEiPKcS3_S3_S3_S3_S3_S3_S3_RKNS_4CImgIT_EEb[_ZN12cimg_library4cimg6dialogIhEEiPKcS3_S3_S3_S3_S3_S3_S3_RKNS_4CImgIT_EEb]+0x24d6): undefined reference to `__imp_SetDIBitsToDevice'
  file1bb88243400b.o:file1bb88243400b.cpp:(.text$_ZN12cimg_library11CImgDisplay6resizeEiib[_ZN12cimg_library11CImgDisplay6resizeEiib]+0x2e6): undefined reference to `__imp_SetDIBitsToDevice'
  file1bb88243400b.o:file1bb88243400b.cpp:(.text$_ZN12cimg_library11CImgDisplay6resizeEiib[_ZN12cimg_library11CImgDisplay6resizeEiib]+0xcdd): undefined reference to `__imp_SetDIBitsToDevice'
  file1bb88243400b.o:file1bb88243400b.cpp:(.text$_ZN12cimg_library11CImgDisplay6resizeEiib[_ZN12cimg_library11CImgDisplay6resizeEiib]+0x116d): more undefined references to `__imp_SetDIBitsToDevice' follow
  collect2.exe: error: ld returned 1 exit status
  make[1]: Entering directory `/cygdrive/d/temp/Rtmp0ivEg9/sourceCpp-x86_64-w64-mingw32-1.0.4/sourcecpp_1bb88e7e510f'
  d:/Compiler/gcc-4.9.3/mingw_64/bin/g++ -std=gnu++11 -m64 -I"D:/RCompile/recent/R/include" -DNDEBUG -Dcimg_r_mode -fpermissive  -I"D:/temp/RtmpyWRkIj/RLIBS_3dd435a3321a/Rcpp/include" -I"D:/temp/RtmpyWRkIj/RLIBS_3dd435a3321a/imager/include" -I"D:/temp/Rtmp0ivEg9/sourceCpp-x86_64-w64-mingw32-1.0.4"   -I"d:/Compiler/gcc-4.9.3/local330/include"     -pedantic -O2 -Wall  -mtune=core2 -c file1bb88243400b.cpp -o file1bb88243400b.o
  d:/Compiler/gcc-4.9.3/mingw_64/bin/g++ -std=gnu++11 -m64 -shared -s -static-libgcc -o sourceCpp_2.dll tmp.def file1bb88243400b.o -Ld:/Compiler/gcc-4.9.3/local330/lib/x64 -Ld:/Compiler/gcc-4.9.3/local330/lib -LD:/RCompile/recent/R/bin/x64 -lR
  make[1]: Leaving directory `/cygdrive/d/temp/Rtmp0ivEg9/sourceCpp-x86_64-w64-mingw32-1.0.4/sourcecpp_1bb88e7e510f'
  make[1]: Entering directory `/cygdrive/d/temp/Rtmp0ivEg9/sourceCpp-x86_64-w64-mingw32-1.0.4/sourcecpp_1bb88e7e510f'
  make[1]: Leaving directory `/cygdrive/d/temp/Rtmp0ivEg9/sourceCpp-x86_64-w64-mingw32-1.0.4/sourcecpp_1bb88e7e510f'
  -- 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