Running 'testthat.R' [57s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > testthat::context("hct")
  > Sys.setenv("R_TESTS" = "")
  > library(HCT)
  Loading required package: rstan
  Loading required package: StanHeaders
  Loading required package: ggplot2
  rstan (Version 2.21.2, GitRev: 2e1f913d3ca3)
  For execution on a local, multicore CPU with excess RAM we recommend calling
  options(mc.cores = parallel::detectCores()).
  To avoid recompilation of unchanged Stan programs, we recommend calling
  rstan_options(auto_write = TRUE)
  Do not specify '-march=native' in 'LOCAL_CPPFLAGS' or a Makevars file
  
  Attaching package: 'HCT'
  
  The following object is masked from 'package:base':
  
      summary
  
  > als=data.frame(
  +   estimate=c(-1.13, -1.01, -0.96, -1, -1.04, -1, -0.83, -1.04, -0.99, -1.05,
  +                           -1.14, -1.08, -0.92, -1.16, -0.93, -0.99),
  +                SE=c(0.05, 0.04, 0.16, 0.12, 0.05, 0.11, 0.02, 0.03, 0.03, 0.06,
  +                     0.06, 0.03, 0.05, 0.04, 0.06, 0.05),
  +                N=c(350, 730, 83, 83, 287, 90, 1193, 859, 583, 227, 279, 510, 185,
  +                    468, 127, 206))
  > ts=hct(als,'estimate','SE','N',rseed=322)
  DIAGNOSTIC(S) FROM PARSER:
  Info: Comments beginning with # are deprecated.  Please use // in place of # for line comments.
  
  make cmd is
    make -f "D:/RCompile/recent/R-40~1.3/etc/x64/Makeconf" -f "D:/RCompile/recent/R-40~1.3/etc/x64/Makevars.site" -f "D:/RCompile/recent/R-40~1.3/share/make/winshlib.mk" CXX='$(CXX14) $(CXX14STD)' CXXFLAGS='$(CXX14FLAGS)' CXXPICFLAGS='$(CXX14PICFLAGS)' SHLIB_LDFLAGS='$(SHLIB_CXX14LDFLAGS)' SHLIB_LD='$(SHLIB_CXX14LD)' SHLIB="file2b0409e17b5d.dll" WIN=64 TCLBIN=64 OBJECTS="file2b0409e17b5d.o"
  
  make would use
  make[1]: Entering directory '/d/temp/Rtmp6XomZT'
  if test "zfile2b0409e17b5d.o" != "z"; then \
    if test -e "file2b0409e17b5d-win.def"; then \
      echo d:/Compiler/rtools40/mingw64/bin/g++  -shared -s -static-libgcc -o file2b0409e17b5d.dll file2b0409e17b5d-win.def file2b0409e17b5d.o  -L"d:/Compiler/gcc-4.9.3/local330/lib/x64" -L"d:/Compiler/gcc-4.9.3/local330/lib"  -L"D:/RCompile/recent/R-40~1.3/bin/x64" -lR ; \
      d:/Compiler/rtools40/mingw64/bin/g++  -shared -s -static-libgcc -o file2b0409e17b5d.dll file2b0409e17b5d-win.def file2b0409e17b5d.o  -L"d:/Compiler/gcc-4.9.3/local330/lib/x64" -L"d:/Compiler/gcc-4.9.3/local330/lib"  -L"D:/RCompile/recent/R-40~1.3/bin/x64" -lR ; \
    else \
      echo EXPORTS > tmp.def; \
      d:/Compiler/rtools40/mingw64/bin/nm file2b0409e17b5d.o | sed -n 's/^.* [BCDRT] / /p' | sed -e '/[.]refptr[.]/d' -e '/[.]weak[.]/d' | sed 's/[^ ][^ ]*/"&"/g'  >> tmp.def; \
      echo d:/Compiler/rtools40/mingw64/bin/g++  -shared -s -static-libgcc -o file2b0409e17b5d.dll tmp.def file2b0409e17b5d.o  -L"d:/Compiler/gcc-4.9.3/local330/lib/x64" -L"d:/Compiler/gcc-4.9.3/local330/lib"  -L"D:/RCompile/recent/R-40~1.3/bin/x64" -lR ; \
      d:/Compiler/rtools40/mingw64/bin/g++  -shared -s -static-libgcc -o file2b0409e17b5d.dll tmp.def file2b0409e17b5d.o  -L"d:/Compiler/gcc-4.9.3/local330/lib/x64" -L"d:/Compiler/gcc-4.9.3/local330/lib"  -L"D:/RCompile/recent/R-40~1.3/bin/x64" -lR ; \
      rm -f tmp.def; \
    fi \
  fi
  make[1]: Leaving directory '/d/temp/Rtmp6XomZT'
  Error in compileCode(f, code, language = language, verbose = verbose) : 
    D:/Compiler/rtools40/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: file2b0409e17b5d.o:file2b0409e17b5d.cpp:(.text$_ZN3tbb8internal26task_scheduler_observer_v3D1Ev[_ZN3tbb8internal26task_scheduler_observer_v3D1Ev]+0x14): undefined reference to `tbb::internal::task_scheduler_observer_v3::observe(bool)'D:/Compiler/rtools40/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: file2b0409e17b5d.o:file2b0409e17b5d.cpp:(.text$_ZN3tbb8internal26task_scheduler_observer_v3D0Ev[_ZN3tbb8internal26task_scheduler_observer_v3D0Ev]+0x1c): undefined reference to `tbb::internal::task_scheduler_observer_v3::observe(bool)'D:/Compiler/rtools40/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: file2b0409e17b5d.o:file2b0409e17b5d.cpp:(.text$_ZN4stan4math16ad_tape_observerD1Ev[_ZN4stan4math16ad_tape_observerD1Ev]+0x15): undefined reference to `tbb::internal::task_scheduler_obser
  Calls: hct ... <Anonymous> -> <Anonymous> -> force -> cxxfunction -> compileCode
  Error in sink(type = "output") : invalid connection
  Calls: hct ... <Anonymous> -> stan_model -> cxxfunctionplus -> sink
  Execution halted