Running 'testthat.R' [47s/55s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(posterior)
  This is posterior version 1.2.0
  
  Attaching package: 'posterior'
  
  The following objects are masked from 'package:stats':
  
      mad, sd, var
  
  > 
  > test_check("posterior")
  [ FAIL 8 | WARN 8 | SKIP 2 | PASS 994 ]
  
  == Skipped tests ===============================================================
  * On CRAN (2)
  
  == Failed tests ================================================================
  -- Failure (test-print.R:103:3): print.draws_rvars handles reserved variables correctly --
  `print(x)` does not match "hidden reserved variables {'.log_weight'}".
  Actual value: "# A draws_rvars: 100 iterations, 4 chains, and 2 variables\n$tau: rvar<100,4>[1] mean \xb1 sd:\n[1] 4.2 \xb1 3.6 \n\n$theta: rvar<100,4>[8] mean \xb1 sd:\n[1] 6.7 \xb1 6.3  5.3 \xb1 4.6  3.0 \xb1 6.8  4.9 \xb1 4.9  3.2 \xb1 5.1  4.0 \xb1 5.2  6.5 \xb1 5.3 \n[8] 4.6 \xb1 5.3 \n\n# ... hidden reserved variables {'.log_weight'}"
  Backtrace:
      x
   1. \-testthat::expect_output(...) at test-print.R:103:2
   2.   \-testthat::expect_match(...)
   3.     \-testthat:::expect_match_(...)
  -- Failure (test-rvar-print.R:5:3): basic print.rvar works ---------------------
  `print(rvar(), color = FALSE)` does not match "rvar<1>[0] mean ± sd:\nNULL".
  Actual value: "rvar<1>[0] mean \xb1 sd:\nNULL"
  Backtrace:
      x
   1. \-testthat::expect_output(...) at test-rvar-print.R:5:2
   2.   \-testthat::expect_match(...)
   3.     \-testthat:::expect_match_(...)
  -- Failure (test-rvar-print.R:11:3): basic print.rvar works --------------------
  `print(x, color = FALSE)` does not match "rvar<2>[2,3] mean ± sd:\n     [,1]         [,2]         [,3]        \n[1,]  1.5 ± 0.71   5.5 ± 0.71   9.5 ± 0.71 \n[2,]  3.5 ± 0.71   7.5 ± 0.71  11.5 ± 0.71 ".
  Actual value: "rvar<2>[2,3] mean \xb1 sd:\n     [,1]         [,2]         [,3]        \n[1,]  1.5 \xb1 0.71   5.5 \xb1 0.71   9.5 \xb1 0.71 \n[2,]  3.5 \xb1 0.71   7.5 \xb1 0.71  11.5 \xb1 0.71 "
  Backtrace:
      x
   1. \-testthat::expect_output(...) at test-rvar-print.R:11:2
   2.   \-testthat::expect_match(...)
   3.     \-testthat:::expect_match_(...)
  -- Failure (test-rvar-print.R:19:3): basic print.rvar works --------------------
  `print(x_with_chains, color = FALSE)` does not match "rvar<1,2>[2,3] mean ± sd:\n     [,1]         [,2]         [,3]        \n[1,]  1.5 ± 0.71   5.5 ± 0.71   9.5 ± 0.71 \n[2,]  3.5 ± 0.71   7.5 ± 0.71  11.5 ± 0.71 ".
  Actual value: "rvar<1,2>[2,3] mean \xb1 sd:\n     [,1]         [,2]         [,3]        \n[1,]  1.5 \xb1 0.71   5.5 \xb1 0.71   9.5 \xb1 0.71 \n[2,]  3.5 \xb1 0.71   7.5 \xb1 0.71  11.5 \xb1 0.71 "
  Backtrace:
      x
   1. \-testthat::expect_output(...) at test-rvar-print.R:19:2
   2.   \-testthat::expect_match(...)
   3.     \-testthat:::expect_match_(...)
  -- Failure (test-rvar-print.R:36:3): basic str.rvar works ----------------------
  `str(rvar(1:3))` does not match " rvar<3>[1]  2 ± 1".
  Actual value: " rvar<3>[1]  2 \xb1 1"
  Backtrace:
      x
   1. \-testthat::expect_output(...) at test-rvar-print.R:36:2
   2.   \-testthat::expect_match(...)
   3.     \-testthat:::expect_match_(...)
  -- Failure (test-rvar-print.R:40:3): basic str.rvar works ----------------------
  `str(x, vec.len = 5)` does not match " rvar<2>[3,4]  1.5 ± 0.71  3.5 ± 0.71  5.5 ± 0.71  7.5 ± 0.71  9.5 ± 0.71 ...".
  Actual value: " rvar<2>[3,4]  1.5 \xb1 0.71  3.5 \xb1 0.71  5.5 \xb1 0.71  7.5 \xb1 0.71  9.5 \xb1 0.71 ..."
  Backtrace:
      x
   1. \-testthat::expect_output(...) at test-rvar-print.R:40:2
   2.   \-testthat::expect_match(...)
   3.     \-testthat:::expect_match_(...)
  -- Failure (test-rvar-print.R:44:3): basic str.rvar works ----------------------
  `str(x_with_chains, vec.len = 5)` does not match " rvar<1,2>[3,4]  1.5 ± 0.71  3.5 ± 0.71  5.5 ± 0.71  7.5 ± 0.71  9.5 ± 0.71 ...".
  Actual value: " rvar<1,2>[3,4]  1.5 \xb1 0.71  3.5 \xb1 0.71  5.5 \xb1 0.71  7.5 \xb1 0.71  9.5 \xb1 0.71 ..."
  Backtrace:
      x
   1. \-testthat::expect_output(...) at test-rvar-print.R:44:2
   2.   \-testthat::expect_match(...)
   3.     \-testthat:::expect_match_(...)
  -- Failure (test-rvar-print.R:54:3): basic str.rvar works ----------------------
  `str(x_with_attrs, vec.len = 5)` does not match " rvar<2>[3,4]  1.5 ± 0.71  3.5 ± 0.71  5.5 ± 0.71  7.5 ± 0.71  9.5 ± 0.71 ...\n - dimnames(*)=List of 2\n  ..$ : chr [1:3] \"a\" \"b\" \"c\"\n  ..$ : NULL\n - attr(draws_of(*), \"foo\")=List of 2\n  ..$ : num 1\n  ..$ : num 2\n - attr(*, \"bar\")=List of 2\n  ..$ : num 1\n  ..$ : num 2".
  Actual value: " rvar<2>[3,4]  1.5 \xb1 0.71  3.5 \xb1 0.71  5.5 \xb1 0.71  7.5 \xb1 0.71  9.5 \xb1 0.71 ...\n - dimnames(*)=List of 2\n  ..$ : chr [1:3] "a" "b" "c"\n  ..$ : NULL\n - attr(draws_of(*), "foo")=List of 2\n  ..$ : num 1\n  ..$ : num 2\n - attr(*, "bar")=List of 2\n  ..$ : num 1\n  ..$ : num 2"
  Backtrace:
      x
   1. \-testthat::expect_output(...) at test-rvar-print.R:54:2
   2.   \-testthat::expect_match(...)
   3.     \-testthat:::expect_match_(...)
  
  [ FAIL 8 | WARN 8 | SKIP 2 | PASS 994 ]
  Error: Test failures
  Execution halted