Running 'testthat.R' [117s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > Sys.setenv("R_TESTS" = "")
  > library(testthat)
  > 
  > test_check("bridgesampling")
  Loading required package: bridgesampling
  Median of 10 bridge sampling estimates
  of the log marginal likelihood: 4293.156
  Range of estimates: 4290.976 to 4294.028
  Interquartile range: 1.62594
  Method: normal
  make cmd is
    make -f "D:/RCompile/recent/R/etc/x64/Makeconf" -f "D:/RCompile/recent/R/etc/x64/Makevars.site" -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="file34a040ac2243.dll" WIN=64 TCLBIN=64 OBJECTS="file34a040ac2243.o"
  
  make would use
  make[1]: Entering directory '/d/temp/Rtmp2r7cjt'
  if test "zfile34a040ac2243.o" != "z"; then \
    if test -e "file34a040ac2243-win.def"; then \
      echo d:/Compiler/rtools40/mingw64/bin/g++  -shared -s -static-libgcc -o file34a040ac2243.dll file34a040ac2243-win.def file34a040ac2243.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/bin/x64" -lR ; \
      d:/Compiler/rtools40/mingw64/bin/g++  -shared -s -static-libgcc -o file34a040ac2243.dll file34a040ac2243-win.def file34a040ac2243.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/bin/x64" -lR ; \
    else \
      echo EXPORTS > tmp.def; \
      d:/Compiler/rtools40/mingw64/bin/nm file34a040ac2243.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 file34a040ac2243.dll tmp.def file34a040ac2243.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/bin/x64" -lR ; \
      d:/Compiler/rtools40/mingw64/bin/g++  -shared -s -static-libgcc -o file34a040ac2243.dll tmp.def file34a040ac2243.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/bin/x64" -lR ; \
      rm -f tmp.def; \
    fi \
  fi
  make[1]: Leaving directory '/d/temp/Rtmp2r7cjt'
  -- 1. Error: stan_bridge_sampler (@test-stan_bridge_sampler_basic.R#56)  -------
  D:/Compiler/rtools40/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: file34a040ac2243.o:file34a040ac2243.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: file34a040ac2243.o:file34a040ac2243.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: file34a040ac2243.o:file34a040ac2243.cpp:(.text$_ZN4stan4math16ad_tape_observerD1Ev[_ZN4stan4math16ad_tape_observerD1Ev]+0x15): 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: file34a040ac2243.o:file34a040ac2243.cpp:(.text$_ZN4stan4math16ad_tape_observerD1Ev[_ZN4stan4math16ad_tape_observerD1Ev]+0x47): 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: file34a040ac2243.o:file34a040ac2243.cpp:(.text$_ZN4stan4math16ad_tape_observerD0Ev[_ZN4stan4math16ad_tape_observerD0Ev]+0x15): more undefined references to `tbb::internal::task_scheduler_observer_v3::observe(bool)' followcollect2.exe: error: ld returned 1 exit status
  Backtrace:
    1. utils::capture.output(...)
    5. rstan::stan_model(model_code = stancodeH0, model_name = "stanmodel")
    6. rstan:::cxxfunctionplus(...)
   10. inline::cxxfunction(...)
   11. inline:::compileCode(f, code, language = language, verbose = verbose)
  
  -- 2. Error: stan_bridge_sampler (@test-stan_bridge_sampler_basic.R#56)  -------
  invalid connection
  Backtrace:
   1. utils::capture.output(...)
   5. rstan::stan_model(model_code = stancodeH0, model_name = "stanmodel")
   6. rstan:::cxxfunctionplus(...)
   7. base::sink(type = "output")
  
  starting worker pid=127156 on localhost:11807 at 05:51:36.519
  starting worker pid=186992 on localhost:11807 at 05:51:36.846
  
  SAMPLING FOR MODEL 'continuous' NOW (CHAIN 1).
  Chain 1: 
  Chain 1: Gradient evaluation took 0 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 0 seconds.
  Chain 1: Adjust your expectations accordingly!
  Chain 1: 
  Chain 1: 
  Chain 1: Iteration:    1 / 5000 [  0%]  (Warmup)
  Chain 1: Iteration:  500 / 5000 [ 10%]  (Warmup)
  Chain 1: Iteration: 1000 / 5000 [ 20%]  (Warmup)
  Chain 1: Iteration: 1500 / 5000 [ 30%]  (Warmup)
  Chain 1: Iteration: 2000 / 5000 [ 40%]  (Warmup)
  Chain 1: Iteration: 2500 / 5000 [ 50%]  (Warmup)
  Chain 1: Iteration: 2501 / 5000 [ 50%]  (Sampling)
  Chain 1: Iteration: 3000 / 5000 [ 60%]  (Sampling)
  Chain 1: Iteration: 3500 / 5000 [ 70%]  (Sampling)
  
  SAMPLING FOR MODEL 'continuous' NOW (CHAIN 2).
  Chain 2: 
  Chain 2: Gradient evaluation took 0 seconds
  Chain 2: 1000 transitions using 10 leapfrog steps per transition would take 0 seconds.
  Chain 2: Adjust your expectations accordingly!
  Chain 2: 
  Chain 2: 
  Chain 2: Iteration:    1 / 5000 [  0%]  (Warmup)
  Chain 1: Iteration: 4000 / 5000 [ 80%]  (Sampling)
  Chain 2: Iteration:  500 / 5000 [ 10%]  (Warmup)
  Chain 2: Iteration: 1000 / 5000 [ 20%]  (Warmup)
  Chain 1: Iteration: 4500 / 5000 [ 90%]  (Sampling)
  Chain 2: Iteration: 1500 / 5000 [ 30%]  (Warmup)
  Chain 2: Iteration: 2000 / 5000 [ 40%]  (Warmup)
  Chain 2: Iteration: 2500 / 5000 [ 50%]  (Warmup)
  Chain 2: Iteration: 2501 / 5000 [ 50%]  (Sampling)
  Chain 1: Iteration: 5000 / 5000 [100%]  (Sampling)
  Chain 1: 
  Chain 1:  Elapsed Time: 0.483 seconds (Warm-up)
  Chain 1:                0.64 seconds (Sampling)
  Chain 1:                1.123 seconds (Total)
  Chain 1: 
  Chain 2: Iteration: 3000 / 5000 [ 60%]  (Sampling)
  Chain 2: Iteration: 3500 / 5000 [ 70%]  (Sampling)
  Chain 2: Iteration: 4000 / 5000 [ 80%]  (Sampling)
  Chain 2: Iteration: 4500 / 5000 [ 90%]  (Sampling)
  Chain 2: Iteration: 5000 / 5000 [100%]  (Sampling)
  Chain 2: 
  Chain 2:  Elapsed Time: 0.28 seconds (Warm-up)
  Chain 2:                0.468 seconds (Sampling)
  Chain 2:                0.748 seconds (Total)
  Chain 2: 
  Iteration: 1
  Iteration: 2
  Iteration: 3
  Iteration: 4
  Iteration: 5
  starting worker pid=201724 on localhost:11807 at 05:51:51.132
  starting worker pid=14268 on localhost:11807 at 05:51:51.428
  
  SAMPLING FOR MODEL 'continuous' NOW (CHAIN 1).
  Chain 1: 
  Chain 1: Gradient evaluation took 0 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 0 seconds.
  Chain 1: Adjust your expectations accordingly!
  Chain 1: 
  Chain 1: 
  Chain 1: Iteration:    1 / 5000 [  0%]  (Warmup)
  Chain 1: Iteration:  500 / 5000 [ 10%]  (Warmup)
  Chain 1: Iteration: 1000 / 5000 [ 20%]  (Warmup)
  Chain 1: Iteration: 1500 / 5000 [ 30%]  (Warmup)
  Chain 1: Iteration: 2000 / 5000 [ 40%]  (Warmup)
  Chain 1: Iteration: 2500 / 5000 [ 50%]  (Warmup)
  Chain 1: Iteration: 2501 / 5000 [ 50%]  (Sampling)
  Chain 1: Iteration: 3000 / 5000 [ 60%]  (Sampling)
  
  SAMPLING FOR MODEL 'continuous' NOW (CHAIN 2).
  Chain 2: 
  Chain 2: Gradient evaluation took 0 seconds
  Chain 2: 1000 transitions using 10 leapfrog steps per transition would take 0 seconds.
  Chain 2: Adjust your expectations accordingly!
  Chain 2: 
  Chain 2: 
  Chain 2: Iteration:    1 / 5000 [  0%]  (Warmup)
  Chain 1: Iteration: 3500 / 5000 [ 70%]  (Sampling)
  Chain 2: Iteration:  500 / 5000 [ 10%]  (Warmup)
  Chain 2: Iteration: 1000 / 5000 [ 20%]  (Warmup)
  Chain 2: Iteration: 1500 / 5000 [ 30%]  (Warmup)
  Chain 1: Iteration: 4000 / 5000 [ 80%]  (Sampling)
  Chain 2: Iteration: 2000 / 5000 [ 40%]  (Warmup)
  Chain 2: Iteration: 2500 / 5000 [ 50%]  (Warmup)
  Chain 2: Iteration: 2501 / 5000 [ 50%]  (Sampling)
  Chain 1: Iteration: 4500 / 5000 [ 90%]  (Sampling)
  Chain 2: Iteration: 3000 / 5000 [ 60%]  (Sampling)
  Chain 2: Iteration: 3500 / 5000 [ 70%]  (Sampling)
  Chain 1: Iteration: 5000 / 5000 [100%]  (Sampling)
  Chain 1: 
  Chain 1:  Elapsed Time: 0.687 seconds (Warm-up)
  Chain 1:                1.185 seconds (Sampling)
  Chain 1:                1.872 seconds (Total)
  Chain 1: 
  Chain 2: Iteration: 4000 / 5000 [ 80%]  (Sampling)
  Chain 2: Iteration: 4500 / 5000 [ 90%]  (Sampling)
  Chain 2: Iteration: 5000 / 5000 [100%]  (Sampling)
  Chain 2: 
  Chain 2:  Elapsed Time: 0.577 seconds (Warm-up)
  Chain 2:                0.64 seconds (Sampling)
  Chain 2:                1.217 seconds (Total)
  Chain 2: 
  Iteration: 1
  Iteration: 2
  Iteration: 3
  Iteration: 4
  == testthat results  ===========================================================
  [ OK: 64 | SKIPPED: 13 | WARNINGS: 0 | FAILED: 2 ]
  1. Error: stan_bridge_sampler (@test-stan_bridge_sampler_basic.R#56) 
  2. Error: stan_bridge_sampler (@test-stan_bridge_sampler_basic.R#56) 
  
  Error: testthat unit tests failed
  Execution halted