Running 'testthat.R' [160s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > Sys.setenv("R_TESTS" = "")
  > library(testthat)
  > 
  > test_check("bridgesampling")
  Loading required package: bridgesampling
  -- Skip (test-bridge_sampler_Rcpp.R:6:3): bridge sampler matches anlytical value
  Reason: On CRAN
  
  -- Skip (test-bridge_sampler_Rcpp_parallel.R:6:3): bridge sampler matches anlyti
  Reason: On CRAN
  
  -- Skip (test-bridge_sampler_mcmc.list.R:6:3): bridge sampler matches analytical
  Reason: On CRAN
  
  -- Skip (test-bridge_sampler_parallel.R:6:3): bridge sampler matches anlytical v
  Reason: On CRAN
  
  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
  -- Skip (test-nimble_bridge_sampler.R:5:3): nimble support works ---------------
  Reason: On CRAN
  
  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="fileccc0285227d5.dll" WIN=64 TCLBIN=64 OBJECTS="fileccc0285227d5.o"
  
  make would use
  make[1]: Entering directory '/d/temp/Rtmpa2jJqN'
  if test "zfileccc0285227d5.o" != "z"; then \
    if test -e "fileccc0285227d5-win.def"; then \
      echo d:/Compiler/rtools40/mingw64/bin/g++  -shared -s -static-libgcc -o fileccc0285227d5.dll fileccc0285227d5-win.def fileccc0285227d5.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 fileccc0285227d5.dll fileccc0285227d5-win.def fileccc0285227d5.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 fileccc0285227d5.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 fileccc0285227d5.dll tmp.def fileccc0285227d5.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 fileccc0285227d5.dll tmp.def fileccc0285227d5.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/Rtmpa2jJqN'
  -- ERROR (test-stan_bridge_sampler_basic.R:56:5): stan_bridge_sampler ----------
  Error: D:/Compiler/rtools40/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: fileccc0285227d5.o:fileccc0285227d5.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: fileccc0285227d5.o:fileccc0285227d5.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: fileccc0285227d5.o:fileccc0285227d5.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: fileccc0285227d5.o:fileccc0285227d5.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: fileccc0285227d5.o:fileccc0285227d5.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:
       x
    1. +-utils::capture.output(...)
    2. | \-base::withVisible(...elt(i))
    3. +-base::suppressMessages(...)
    4. | \-base::withCallingHandlers(...)
    5. \-rstan::stan_model(model_code = stancodeH0, model_name = "stanmodel")
    6.   \-rstan:::cxxfunctionplus(...)
    7.     +-pkgbuild::with_build_tools(...)
    8.     | \-withr::with_path(rtools_path(), code)
    9.     |   \-base::force(code)
   10.     \-inline::cxxfunction(...)
   11.       \-inline:::compileCode(f, code, language = language, verbose = verbose)
  
  -- ERROR (test-stan_bridge_sampler_basic.R:56:5): stan_bridge_sampler ----------
  Error: invalid connection
  Backtrace:
      x
   1. +-utils::capture.output(...) test-stan_bridge_sampler_basic.R:56:4
   2. | \-base::withVisible(...elt(i))
   3. +-base::suppressMessages(...)
   4. | \-base::withCallingHandlers(...)
   5. \-rstan::stan_model(model_code = stancodeH0, model_name = "stanmodel")
   6.   \-rstan:::cxxfunctionplus(...)
   7.     \-base::sink(type = "output")
  
  -- Skip (test-stan_bridge_sampler_basic.R:95:3): stan_bridge_sampler in multicor
  Reason: On CRAN
  
  -- Skip (test-stan_bridge_sampler_bugs.R:7:3): bridge_sampler.stanfit multicore 
  Reason: On CRAN
  
  -- Skip (test-stan_bridge_sampler_bugs.R:51:3): turtle example -----------------
  Reason: On CRAN
  
  starting worker pid=113852 on localhost:11601 at 19:55:53.775
  starting worker pid=58028 on localhost:11601 at 19:55:54.150
  
  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)
  Chain 1: Iteration: 4000 / 5000 [ 80%]  (Sampling)
  Chain 1: Iteration: 4500 / 5000 [ 90%]  (Sampling)
  Chain 1: Iteration: 5000 / 5000 [100%]  (Sampling)
  Chain 1: 
  Chain 1:  Elapsed Time: 0.436 seconds (Warm-up)
  Chain 1:                0.578 seconds (Sampling)
  Chain 1:                1.014 seconds (Total)
  Chain 1: 
  
  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 2: Iteration:  500 / 5000 [ 10%]  (Warmup)
  Chain 2: Iteration: 1000 / 5000 [ 20%]  (Warmup)
  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 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.406 seconds (Warm-up)
  Chain 2:                0.593 seconds (Sampling)
  Chain 2:                0.999 seconds (Total)
  Chain 2: 
  Iteration: 1
  Iteration: 2
  Iteration: 3
  Iteration: 4
  Iteration: 5
  starting worker pid=193360 on localhost:11601 at 19:56:16.973
  starting worker pid=132424 on localhost:11601 at 19:56:17.331
  
  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)
  Chain 1: Iteration: 4000 / 5000 [ 80%]  (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: 4500 / 5000 [ 90%]  (Sampling)
  Chain 2: Iteration:  500 / 5000 [ 10%]  (Warmup)
  Chain 2: Iteration: 1000 / 5000 [ 20%]  (Warmup)
  Chain 1: Iteration: 5000 / 5000 [100%]  (Sampling)
  Chain 1: 
  Chain 1:  Elapsed Time: 0.734 seconds (Warm-up)
  Chain 1:                1.357 seconds (Sampling)
  Chain 1:                2.091 seconds (Total)
  Chain 1: 
  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 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.733 seconds (Warm-up)
  Chain 2:                0.842 seconds (Sampling)
  Chain 2:                1.575 seconds (Total)
  Chain 2: 
  Iteration: 1
  Iteration: 2
  Iteration: 3
  Iteration: 4
  -- Skip (test-stanreg_bridge_sampler_basic.R:21:3): stan_bridge_sampler in multi
  Reason: On CRAN
  
  -- Skip (test-vignette_example_jags.R:6:3): bridge sampler yields correct result
  Reason: On CRAN
  
  -- Skip (test-vignette_example_nimble.R:6:3): bridge sampler yields correct resu
  Reason: On CRAN
  
  -- Skip (test-vignette_example_stan.R:6:3): bridge sampler yields correct result
  Reason: On CRAN
  
  -- Skip (test-vignette_stan_ttest.R:6:3): bridge sampler yields correct results 
  Reason: On CRAN
  
  -- Skipped tests  --------------------------------------------------------------
  * On CRAN (13)
  
  == testthat results  ===========================================================
  ERROR (test-stan_bridge_sampler_basic.R:56:5): stan_bridge_sampler
  ERROR (test-stan_bridge_sampler_basic.R:56:5): stan_bridge_sampler
  
  [ FAIL 2 | WARN 0 | SKIP 13 | PASS 64 ]
  Error: Test failures
  Execution halted