CRAN Package Check Results for Package posterior

Last updated on 2022-01-27 20:50:00 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.2.0 9.68 140.02 149.70 ERROR
r-devel-linux-x86_64-debian-gcc 1.2.0 8.62 105.19 113.81 OK
r-devel-linux-x86_64-fedora-clang 1.2.0 194.09 OK
r-devel-linux-x86_64-fedora-gcc 1.2.0 180.04 OK
r-devel-windows-x86_64-new-UL 1.2.0 172.00 201.00 373.00 OK
r-devel-windows-x86_64-new-TK 1.2.0 OK
r-patched-linux-x86_64 1.2.0 16.01 133.63 149.64 OK
r-release-linux-x86_64 1.2.0 8.58 133.25 141.83 OK
r-release-macos-arm64 1.2.0 OK
r-release-macos-x86_64 1.2.0 OK
r-release-windows-ix86+x86_64 1.2.0 22.00 185.00 207.00 ERROR
r-oldrel-macos-x86_64 1.2.0 OK
r-oldrel-windows-ix86+x86_64 1.2.0 22.00 187.00 209.00 ERROR

Check Details

Version: 1.2.0
Check: tests
Result: ERROR
     Running 'testthat.R' [30s/34s]
    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(...) 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(...) 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(...) 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(...) 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(...) 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(...) 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(...) 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(...) 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
Flavor: r-devel-linux-x86_64-debian-clang

Version: 1.2.0
Check: tests
Result: ERROR
     Running 'testthat.R' [52s]
    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 9 | WARN 7 | SKIP 2 | PASS 989 ]
    
     == Skipped tests ===============================================================
     * On CRAN (2)
    
     == Failed tests ================================================================
     -- Error (test-print.R:47:3): print.draws_rvars runs without errors ------------
     Error in `gsub(paste0("([\\", paste0(collapse = "\\", chars), "])"), "\\\\\\1",
     x, perl = TRUE)`: input string 1 is invalid UTF-8
     Backtrace:
     x
     1. \-testthat::expect_output(print(x), "A draws_rvars: 100 iterations, 4 chains, and 3 variables") test-print.R:47:2
     2. \-testthat::expect_match(...)
     3. \-testthat:::expect_match_(...)
     4. +-base::paste0(...)
     5. \-testthat:::escape(encodeString(act$val))
     6. \-base::gsub(...)
     -- Error (test-print.R:102:3): print.draws_rvars handles reserved variables correctly --
     Error in `gsub(paste0("([\\", paste0(collapse = "\\", chars), "])"), "\\\\\\1",
     x, perl = TRUE)`: input string 1 is invalid UTF-8
     Backtrace:
     x
     1. \-testthat::expect_output(print(x, max_variables = 1), "tau") test-print.R:102:2
     2. \-testthat::expect_match(...)
     3. \-testthat:::expect_match_(...)
     4. +-base::paste0(...)
     5. \-testthat:::escape(encodeString(act$val))
     6. \-base::gsub(...)
     -- 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 <U+00B1> sd:\nNULL"
     Backtrace:
     x
     1. \-testthat::expect_output(...) 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 <U+00B1> sd:\n [,1] [,2] [,3] \n[1,] 1.5 <U+00B1> 0.71 5.5 <U+00B1> 0.71 9.5 <U+00B1> 0.71 \n[2,] 3.5 <U+00B1> 0.71 7.5 <U+00B1> 0.71 11.5 <U+00B1> 0.71 "
     Backtrace:
     x
     1. \-testthat::expect_output(...) 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 <U+00B1> sd:\n [,1] [,2] [,3] \n[1,] 1.5 <U+00B1> 0.71 5.5 <U+00B1> 0.71 9.5 <U+00B1> 0.71 \n[2,] 3.5 <U+00B1> 0.71 7.5 <U+00B1> 0.71 11.5 <U+00B1> 0.71 "
     Backtrace:
     x
     1. \-testthat::expect_output(...) 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 <U+00B1> 1"
     Backtrace:
     x
     1. \-testthat::expect_output(...) 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 <U+00B1> 0.71 3.5 <U+00B1> 0.71 5.5 <U+00B1> 0.71 7.5 <U+00B1> 0.71 9.5 <U+00B1> 0.71 ..."
     Backtrace:
     x
     1. \-testthat::expect_output(...) 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 <U+00B1> 0.71 3.5 <U+00B1> 0.71 5.5 <U+00B1> 0.71 7.5 <U+00B1> 0.71 9.5 <U+00B1> 0.71 ..."
     Backtrace:
     x
     1. \-testthat::expect_output(...) 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 <U+00B1> 0.71 3.5 <U+00B1> 0.71 5.5 <U+00B1> 0.71 7.5 <U+00B1> 0.71 9.5 <U+00B1> 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(...) test-rvar-print.R:54:2
     2. \-testthat::expect_match(...)
     3. \-testthat:::expect_match_(...)
    
     [ FAIL 9 | WARN 7 | SKIP 2 | PASS 989 ]
     Error: Test failures
     Execution halted
Flavor: r-release-windows-ix86+x86_64

Version: 1.2.0
Check: tests
Result: ERROR
     Running 'testthat.R' [56s]
    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 9 | WARN 7 | SKIP 2 | PASS 989 ]
    
     == Skipped tests ===============================================================
     * On CRAN (2)
    
     == Failed tests ================================================================
     -- Error (test-print.R:47:3): print.draws_rvars runs without errors ------------
     Error in `gsub(paste0("([\\", paste0(collapse = "\\", chars), "])"), "\\\\\\1",
     x, perl = TRUE)`: input string 1 is invalid UTF-8
     Backtrace:
     x
     1. \-testthat::expect_output(print(x), "A draws_rvars: 100 iterations, 4 chains, and 3 variables") test-print.R:47:2
     2. \-testthat::expect_match(...)
     3. \-testthat:::expect_match_(...)
     4. +-base::paste0(...)
     5. \-testthat:::escape(encodeString(act$val))
     6. \-base::gsub(...)
     -- Error (test-print.R:102:3): print.draws_rvars handles reserved variables correctly --
     Error in `gsub(paste0("([\\", paste0(collapse = "\\", chars), "])"), "\\\\\\1",
     x, perl = TRUE)`: input string 1 is invalid UTF-8
     Backtrace:
     x
     1. \-testthat::expect_output(print(x, max_variables = 1), "tau") test-print.R:102:2
     2. \-testthat::expect_match(...)
     3. \-testthat:::expect_match_(...)
     4. +-base::paste0(...)
     5. \-testthat:::escape(encodeString(act$val))
     6. \-base::gsub(...)
     -- 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 <U+00B1> sd:\nNULL"
     Backtrace:
     x
     1. \-testthat::expect_output(...) 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 <U+00B1> sd:\n [,1] [,2] [,3] \n[1,] 1.5 <U+00B1> 0.71 5.5 <U+00B1> 0.71 9.5 <U+00B1> 0.71 \n[2,] 3.5 <U+00B1> 0.71 7.5 <U+00B1> 0.71 11.5 <U+00B1> 0.71 "
     Backtrace:
     x
     1. \-testthat::expect_output(...) 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 <U+00B1> sd:\n [,1] [,2] [,3] \n[1,] 1.5 <U+00B1> 0.71 5.5 <U+00B1> 0.71 9.5 <U+00B1> 0.71 \n[2,] 3.5 <U+00B1> 0.71 7.5 <U+00B1> 0.71 11.5 <U+00B1> 0.71 "
     Backtrace:
     x
     1. \-testthat::expect_output(...) 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 <U+00B1> 1"
     Backtrace:
     x
     1. \-testthat::expect_output(...) 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 <U+00B1> 0.71 3.5 <U+00B1> 0.71 5.5 <U+00B1> 0.71 7.5 <U+00B1> 0.71 9.5 <U+00B1> 0.71 ..."
     Backtrace:
     x
     1. \-testthat::expect_output(...) 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 <U+00B1> 0.71 3.5 <U+00B1> 0.71 5.5 <U+00B1> 0.71 7.5 <U+00B1> 0.71 9.5 <U+00B1> 0.71 ..."
     Backtrace:
     x
     1. \-testthat::expect_output(...) 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 <U+00B1> 0.71 3.5 <U+00B1> 0.71 5.5 <U+00B1> 0.71 7.5 <U+00B1> 0.71 9.5 <U+00B1> 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(...) test-rvar-print.R:54:2
     2. \-testthat::expect_match(...)
     3. \-testthat:::expect_match_(...)
    
     [ FAIL 9 | WARN 7 | SKIP 2 | PASS 989 ]
     Error: Test failures
     Execution halted
Flavor: r-oldrel-windows-ix86+x86_64