Running 'testthat.R' [76s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > Sys.setenv("R_TESTS" = "")
  > library(testthat)
  > library(gppm)
  Loading required package: Rcpp
  > 
  > test_check("gppm")
  make cmd is
    make -f "D:/RCompile/recent/R/etc/x64/Makeconf" -f "D:/RCompile/recent/R/share/make/winshlib.mk" CXX='$(CXX14) $(CXX14STD)' CXXFLAGS='$(CXX14FLAGS)' CXXPICFLAGS='$(CXX14PICFLAGS)' SHLIB_LDFLAGS='$(SHLIB_CXX14LDFLAGS)' SHLIB_LD='$(SHLIB_CXX14LD)' SHLIB="filec3382a9e7b00.dll" WIN=64 TCLBIN= OBJECTS="filec3382a9e7b00.o"
  
  make would use
  make[1]: Entering directory '/d/temp/RtmpABd5hp'
  if test "zfilec3382a9e7b00.o" != "z"; then \
    if test -e "filec3382a9e7b00-win.def"; then \
      echo g++  -shared -s -static-libgcc -o filec3382a9e7b00.dll filec3382a9e7b00-win.def filec3382a9e7b00.o  -L"d:/rtools42/x86_64-w64-mingw32.static.posix/lib/x64" -L"d:/rtools42/x86_64-w64-mingw32.static.posix/lib"  -L"D:/RCompile/recent/R/bin/x64" -lR ; \
      g++  -shared -s -static-libgcc -o filec3382a9e7b00.dll filec3382a9e7b00-win.def filec3382a9e7b00.o  -L"d:/rtools42/x86_64-w64-mingw32.static.posix/lib/x64" -L"d:/rtools42/x86_64-w64-mingw32.static.posix/lib"  -L"D:/RCompile/recent/R/bin/x64" -lR ; \
    else \
      echo EXPORTS > tmp.def; \
      nm filec3382a9e7b00.o | sed -n 's/^.* [BCDRT] / /p' | sed -e '/[.]refptr[.]/d' -e '/[.]weak[.]/d' | sed 's/[^ ][^ ]*/"&"/g'  >> tmp.def; \
      echo g++  -shared -s -static-libgcc -o filec3382a9e7b00.dll tmp.def filec3382a9e7b00.o  -L"d:/rtools42/x86_64-w64-mingw32.static.posix/lib/x64" -L"d:/rtools42/x86_64-w64-mingw32.static.posix/lib"  -L"D:/RCompile/recent/R/bin/x64" -lR ; \
      g++  -shared -s -static-libgcc -o filec3382a9e7b00.dll tmp.def filec3382a9e7b00.o  -L"d:/rtools42/x86_64-w64-mingw32.static.posix/lib/x64" -L"d:/rtools42/x86_64-w64-mingw32.static.posix/lib"  -L"D:/RCompile/recent/R/bin/x64" -lR ; \
      rm -f tmp.def; \
    fi \
  fi
  make[1]: Leaving directory '/d/temp/RtmpABd5hp'
  Error in compileCode(f, code, language = language, verbose = verbose) : 
    D:\rtools42\x86_64-w64-mingw32.static.posix\bin/ld.exe: filec3382a9e7b00.o:filec3382a9e7b00.cpp:(.text$_ZN3tbb8internal26task_scheduler_observer_v3D0Ev[_ZN3tbb8internal26task_scheduler_observer_v3D0Ev]+0x1d): undefined reference to `tbb::internal::task_scheduler_observer_v3::observe(bool)'D:\rtools42\x86_64-w64-mingw32.static.posix\bin/ld.exe: filec3382a9e7b00.o:filec3382a9e7b00.cpp:(.text$_ZN3tbb10interface623task_scheduler_observerD1Ev[_ZN3tbb10interface623task_scheduler_observerD1Ev]+0x1d): undefined reference to `tbb::internal::task_scheduler_observer_v3::observe(bool)'D:\rtools42\x86_64-w64-mingw32.static.posix\bin/ld.exe: filec3382a9e7b00.o:filec3382a9e7b00.cpp:(.text$_ZN3tbb10interface623task_scheduler_observerD1Ev[_ZN3tbb10interface623task_scheduler_observerD1Ev]+0x3a): undefined reference to `tbb::internal::task_scheduler_observer_v3::observe(bool)'D:\rtools42\x86_64-w64-mingw32.static.posix\bin/ld.exe: filec3382a9e7b00.o:filec3382a9e7b00.cpp:(.text$_ZN3tbb10interface
  Calls: test_check ... <Anonymous> -> <Anonymous> -> force -> cxxfunction -> compileCode
  Error in sink(type = "output") : invalid connection
  Calls: test_check ... withVisible -> <Anonymous> -> cxxfunctionplus -> sink
  Execution halted