Running ‘testthat.R’ [16s/16s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > test_check("surveil")
  Loading required package: surveil
  [1] "Setting normal prior(s) for eta_1: "
   location scale
         -6     5
  [1] "\nSetting half-normal prior for sigma: "
   location scale
          0     1
  
  SAMPLING FOR MODEL 'RW' NOW (CHAIN 1).
  Chain 1: 
  Chain 1: Gradient evaluation took 3.6e-05 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 0.36 seconds.
  Chain 1: Adjust your expectations accordingly!
  Chain 1: 
  Chain 1: 
  Chain 1: WARNING: There aren't enough warmup iterations to fit the
  Chain 1:          three stages of adaptation as currently configured.
  Chain 1:          Reducing each adaptation stage to 15%/75%/10% of
  Chain 1:          the given number of warmup iterations:
  Chain 1:            init_buffer = 7
  Chain 1:            adapt_window = 38
  Chain 1:            term_buffer = 5
  Chain 1: 
  Chain 1: Iteration:  1 / 100 [  1%]  (Warmup)
  Chain 1: Iteration: 51 / 100 [ 51%]  (Sampling)
  Chain 1: Iteration: 100 / 100 [100%]  (Sampling)
  Chain 1: 
  Chain 1:  Elapsed Time: 0.006 seconds (Warm-up)
  Chain 1:                0.005 seconds (Sampling)
  Chain 1:                0.011 seconds (Total)
  Chain 1: 
  [1] "Setting normal prior(s) for eta_1: "
   location scale
         -6     5
  [1] "\nSetting half-normal prior for sigma: "
   location scale
          0     1
  
  SAMPLING FOR MODEL 'RW' NOW (CHAIN 1).
  Chain 1: 
  Chain 1: Gradient evaluation took 2.9e-05 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 0.29 seconds.
  Chain 1: Adjust your expectations accordingly!
  Chain 1: 
  Chain 1: 
  Chain 1: WARNING: There aren't enough warmup iterations to fit the
  Chain 1:          three stages of adaptation as currently configured.
  Chain 1:          Reducing each adaptation stage to 15%/75%/10% of
  Chain 1:          the given number of warmup iterations:
  Chain 1:            init_buffer = 7
  Chain 1:            adapt_window = 38
  Chain 1:            term_buffer = 5
  Chain 1: 
  Chain 1: Iteration:  1 / 100 [  1%]  (Warmup)
  Chain 1: Iteration: 51 / 100 [ 51%]  (Sampling)
  Chain 1: Iteration: 100 / 100 [100%]  (Sampling)
  Chain 1: 
  Chain 1:  Elapsed Time: 0.006 seconds (Warm-up)
  Chain 1:                0.012 seconds (Sampling)
  Chain 1:                0.018 seconds (Total)
  Chain 1: 
  [1] "Setting normal prior(s) for eta_1: "
   location scale
         -6     5
  [1] "\nSetting half-normal prior for sigma: "
   location scale
          0     1
  [1] "\nSetting LKJ prior on correlation matrix: "
   eta
     2
  
  SAMPLING FOR MODEL 'RWCorr' NOW (CHAIN 1).
  Chain 1: 
  Chain 1: Gradient evaluation took 7.9e-05 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 0.79 seconds.
  Chain 1: Adjust your expectations accordingly!
  Chain 1: 
  Chain 1: 
  Chain 1: WARNING: There aren't enough warmup iterations to fit the
  Chain 1:          three stages of adaptation as currently configured.
  Chain 1:          Reducing each adaptation stage to 15%/75%/10% of
  Chain 1:          the given number of warmup iterations:
  Chain 1:            init_buffer = 7
  Chain 1:            adapt_window = 38
  Chain 1:            term_buffer = 5
  Chain 1: 
  Chain 1: Iteration:  1 / 100 [  1%]  (Warmup)
  Chain 1: Iteration: 51 / 100 [ 51%]  (Sampling)
  Chain 1: Iteration: 100 / 100 [100%]  (Sampling)
  Chain 1: 
  Chain 1:  Elapsed Time: 0.023 seconds (Warm-up)
  Chain 1:                0.363 seconds (Sampling)
  Chain 1:                0.386 seconds (Total)
  Chain 1: 
  [1] "Setting normal prior(s) for eta_1: "
   location scale
         -6     5
  [1] "\nSetting half-normal prior for sigma: "
   location scale
          0     1
  [1] "\nSetting LKJ prior on correlation matrix: "
   eta
     2
  
  SAMPLING FOR MODEL 'RWCorr' NOW (CHAIN 1).
  Chain 1: 
  Chain 1: Gradient evaluation took 6.7e-05 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 0.67 seconds.
  Chain 1: Adjust your expectations accordingly!
  Chain 1: 
  Chain 1: 
  Chain 1: WARNING: There aren't enough warmup iterations to fit the
  Chain 1:          three stages of adaptation as currently configured.
  Chain 1:          Reducing each adaptation stage to 15%/75%/10% of
  Chain 1:          the given number of warmup iterations:
  Chain 1:            init_buffer = 7
  Chain 1:            adapt_window = 38
  Chain 1:            term_buffer = 5
  Chain 1: 
  Chain 1: Iteration:  1 / 100 [  1%]  (Warmup)
  Chain 1: Iteration: 51 / 100 [ 51%]  (Sampling)
  Chain 1: Iteration: 100 / 100 [100%]  (Sampling)
  Chain 1: 
  Chain 1:  Elapsed Time: 0.081 seconds (Warm-up)
  Chain 1:                1.338 seconds (Sampling)
  Chain 1:                1.419 seconds (Total)
  Chain 1: 
  [1] "\nSetting half-normal prior for sigma: "
   location scale
          0     1
  
  SAMPLING FOR MODEL 'RW' NOW (CHAIN 1).
  Chain 1: 
  Chain 1: Gradient evaluation took 3.4e-05 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 0.34 seconds.
  Chain 1: Adjust your expectations accordingly!
  Chain 1: 
  Chain 1: 
  Chain 1: WARNING: There aren't enough warmup iterations to fit the
  Chain 1:          three stages of adaptation as currently configured.
  Chain 1:          Reducing each adaptation stage to 15%/75%/10% of
  Chain 1:          the given number of warmup iterations:
  Chain 1:            init_buffer = 7
  Chain 1:            adapt_window = 38
  Chain 1:            term_buffer = 5
  Chain 1: 
  Chain 1: Iteration:  1 / 100 [  1%]  (Warmup)
  Chain 1: Iteration: 51 / 100 [ 51%]  (Sampling)
  Chain 1: Iteration: 100 / 100 [100%]  (Sampling)
  Chain 1: 
  Chain 1:  Elapsed Time: 0.006 seconds (Warm-up)
  Chain 1:                0.004 seconds (Sampling)
  Chain 1:                0.01 seconds (Total)
  Chain 1: 
  
  SAMPLING FOR MODEL 'RWCorr' NOW (CHAIN 1).
  Chain 1: 
  Chain 1: Gradient evaluation took 6.9e-05 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 0.69 seconds.
  Chain 1: Adjust your expectations accordingly!
  Chain 1: 
  Chain 1: 
  Chain 1: WARNING: There aren't enough warmup iterations to fit the
  Chain 1:          three stages of adaptation as currently configured.
  Chain 1:          Reducing each adaptation stage to 15%/75%/10% of
  Chain 1:          the given number of warmup iterations:
  Chain 1:            init_buffer = 7
  Chain 1:            adapt_window = 38
  Chain 1:            term_buffer = 5
  Chain 1: 
  Chain 1: Iteration:  1 / 100 [  1%]  (Warmup)
  Chain 1: Iteration: 51 / 100 [ 51%]  (Sampling)
  Chain 1: Iteration: 100 / 100 [100%]  (Sampling)
  Chain 1: 
  Chain 1:  Elapsed Time: 0.016 seconds (Warm-up)
  Chain 1:                0.037 seconds (Sampling)
  Chain 1:                0.053 seconds (Total)
  Chain 1: 
  [1] "Setting normal prior(s) for eta_1: "
   location scale
         -6     5
  [1] "\nSetting half-normal prior for sigma: "
   location scale
          0     1
  
  SAMPLING FOR MODEL 'RW' NOW (CHAIN 1).
  Chain 1: 
  Chain 1: Gradient evaluation took 3.5e-05 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 0.35 seconds.
  Chain 1: Adjust your expectations accordingly!
  Chain 1: 
  Chain 1: 
  Chain 1: WARNING: There aren't enough warmup iterations to fit the
  Chain 1:          three stages of adaptation as currently configured.
  Chain 1:          Reducing each adaptation stage to 15%/75%/10% of
  Chain 1:          the given number of warmup iterations:
  Chain 1:            init_buffer = 7
  Chain 1:            adapt_window = 38
  Chain 1:            term_buffer = 5
  Chain 1: 
  Chain 1: Iteration:  1 / 100 [  1%]  (Warmup)
  Chain 1: Iteration: 51 / 100 [ 51%]  (Sampling)
  Chain 1: Iteration: 100 / 100 [100%]  (Sampling)
  Chain 1: 
  Chain 1:  Elapsed Time: 0.03 seconds (Warm-up)
  Chain 1:                0.047 seconds (Sampling)
  Chain 1:                0.077 seconds (Total)
  Chain 1: 
  [1] "Setting normal prior(s) for eta_1: "
   location scale
         -6     5
  [1] "\nSetting half-normal prior for sigma: "
   location scale
          0     1
  
  SAMPLING FOR MODEL 'RW' NOW (CHAIN 1).
  Saving _problems/test_rw-109.R
  [1] "Setting normal prior(s) for eta_1: "
   location scale
         -6     5
  [1] "\nSetting half-normal prior for sigma: "
   location scale
          0     1
  
  SAMPLING FOR MODEL 'RW' NOW (CHAIN 1).
  Chain 1: 
  Chain 1: Gradient evaluation took 3.3e-05 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 0.33 seconds.
  Chain 1: Adjust your expectations accordingly!
  Chain 1: 
  Chain 1: 
  Chain 1: WARNING: There aren't enough warmup iterations to fit the
  Chain 1:          three stages of adaptation as currently configured.
  Chain 1:          Reducing each adaptation stage to 15%/75%/10% of
  Chain 1:          the given number of warmup iterations:
  Chain 1:            init_buffer = 7
  Chain 1:            adapt_window = 38
  Chain 1:            term_buffer = 5
  Chain 1: 
  Chain 1: Iteration:  1 / 100 [  1%]  (Warmup)
  Chain 1: Iteration: 51 / 100 [ 51%]  (Sampling)
  Chain 1: Iteration: 100 / 100 [100%]  (Sampling)
  Chain 1: 
  Chain 1:  Elapsed Time: 0.025 seconds (Warm-up)
  Chain 1:                0.049 seconds (Sampling)
  Chain 1:                0.074 seconds (Total)
  Chain 1: 
  [1] "Setting normal prior(s) for eta_1: "
   location scale
         -6     5
  [1] "\nSetting half-normal prior for sigma: "
   location scale
          0     1
  
  SAMPLING FOR MODEL 'RW' NOW (CHAIN 1).
  Chain 1: 
  Chain 1: Gradient evaluation took 3.3e-05 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 0.33 seconds.
  Chain 1: Adjust your expectations accordingly!
  Chain 1: 
  Chain 1: 
  Chain 1: WARNING: There aren't enough warmup iterations to fit the
  Chain 1:          three stages of adaptation as currently configured.
  Chain 1:          Reducing each adaptation stage to 15%/75%/10% of
  Chain 1:          the given number of warmup iterations:
  Chain 1:            init_buffer = 7
  Chain 1:            adapt_window = 38
  Chain 1:            term_buffer = 5
  Chain 1: 
  Chain 1: Iteration:  1 / 100 [  1%]  (Warmup)
  Chain 1: Iteration: 51 / 100 [ 51%]  (Sampling)
  Chain 1: Iteration: 100 / 100 [100%]  (Sampling)
  Chain 1: 
  Chain 1:  Elapsed Time: 0.04 seconds (Warm-up)
  Chain 1:                0.049 seconds (Sampling)
  Chain 1:                0.089 seconds (Total)
  Chain 1: 
  [1] "Setting normal prior(s) for eta_1: "
   location scale
         -6     5
  [1] "\nSetting half-normal prior for sigma: "
   location scale
          0     1
  
  SAMPLING FOR MODEL 'RW' NOW (CHAIN 1).
  Chain 1: 
  Chain 1: Gradient evaluation took 0.000164 seconds
  Chain 1: 1000 transitions using 10 leapfrog steps per transition would take 1.64 seconds.
  Chain 1: Adjust your expectations accordingly!
  Chain 1: 
  Chain 1: 
  Chain 1: WARNING: There aren't enough warmup iterations to fit the
  Chain 1:          three stages of adaptation as currently configured.
  Chain 1:          Reducing each adaptation stage to 15%/75%/10% of
  Chain 1:          the given number of warmup iterations:
  Chain 1:            init_buffer = 7
  Chain 1:            adapt_window = 38
  Chain 1:            term_buffer = 5
  Chain 1: 
  Chain 1: Iteration:  1 / 100 [  1%]  (Warmup)
  Chain 1: Iteration: 51 / 100 [ 51%]  (Sampling)
  Chain 1: Iteration: 100 / 100 [100%]  (Sampling)
  Chain 1: 
  Chain 1:  Elapsed Time: 0.306 seconds (Warm-up)
  Chain 1:                2.364 seconds (Sampling)
  Chain 1:                2.67 seconds (Total)
  Chain 1: 
  [ FAIL 1 | WARN 44 | SKIP 0 | PASS 10 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_rw.R:102:5'): group_diff works, family = binomial ──────────────
  Error in `file(messages, open = "wt")`: cannot open the connection
  Backtrace:
      ▆
   1. └─surveil::stan_rw(...) at test_rw.R:102:5
   2.   ├─rstan::sampling(...)
   3.   └─rstan::sampling(...)
   4.     └─rstan (local) .local(object, ...)
   5.       └─base::file(messages, open = "wt")
  
  [ FAIL 1 | WARN 44 | SKIP 0 | PASS 10 ]
  Error:
  ! Test failures.
  Execution halted