Running 'testthat.R' [110s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(pkgload)
  > 
  > # Needed so that install.packages works correctly
  > Sys.setenv("R_TESTS" = "")
  > 
  > test_check("pkgload")
  -- 1. Error: load_all() can compile and load DLLs linked to Rcpp (@test-dll.r#10
  System command 'Rcmd.exe' failed, exit status: 1, stdout + stderr:
  E> * installing *source* package 'testDllRcpp' ...
  E> ** using staged installation
  E> ** libs
  E> make[1]: Entering directory '/d/RCompile/CRANpkg/local/4.1/pkgload.Rcheck/tests_i386/testthat/testDllRcpp/src'
  E> d:/Compiler/rtools40/mingw32/bin/g++ -std=gnu++11  -I"D:/RCompile/recent/R/include" -DNDEBUG  -I'D:/temp/RtmpOM0R3H/RLIBS_21b6478bf156c/Rcpp/include'   -I"d:/Compiler/gcc-4.9.3/local330/include"     -pedantic -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -UNDEBUG -Wall -pedantic -g -O0 -c RcppExports.cpp -o RcppExports.o
  E> d:/Compiler/rtools40/mingw32/bin/g++ -std=gnu++11  -I"D:/RCompile/recent/R/include" -DNDEBUG  -I'D:/temp/RtmpOM0R3H/RLIBS_21b6478bf156c/Rcpp/include'   -I"d:/Compiler/gcc-4.9.3/local330/include"     -pedantic -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -UNDEBUG -Wall -pedantic -g -O0 -c rcpp_hello_world.cpp -o rcpp_hello_world.o
  E> 
  E> cc1plus.exe: out of memory allocating 65536 bytes
  E> make[1]: *** [D:/RCompile/recent/R/etc/i386/Makeconf:229: rcpp_hello_world.o] Leaving directory '/d/RCompile/CRANpkg/local/4.1/pkgload.Rcheck/tests_i386/testthat/testDllRcpp/src'
  E> ERROR: compilation failed for package 'testDllRcpp'
  E> * removing 'D:/temp/Rtmp8wg4yn/devtools_install_18c4879bb6858/testDllRcpp'
  Backtrace:
    1. pkgload::load_all("testDllRcpp", reset = TRUE, quiet = TRUE)
    2. pkgbuild::compile_dll(path, quiet = quiet)
    7. pkgbuild:::install_min(...)
    8. pkgbuild::rcmd_build_tools(...)
   12. callr::rcmd_safe(...)
   13. callr:::run_r(options)
   15. base::with.default(...)
   16. [ base::eval(...) ] with 1 more call
   22. throw(...)
  
  == testthat results  ===========================================================
  [ OK: 308 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 1 ]
  1. Error: load_all() can compile and load DLLs linked to Rcpp (@test-dll.r#108) 
  
  Error: testthat unit tests failed
  Execution halted