Running 'spelling.R' [0s]
  Running 'testthat.R' [520s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > options(testthat.progress.max_fails = 100)
  > library(testthat)
  > library(greta)
  
  Attaching package: 'greta'
  
  The following objects are masked from 'package:stats':
  
      binomial, cov2cor, poisson
  
  The following objects are masked from 'package:base':
  
      %*%, apply, backsolve, beta, chol2inv, colMeans, colSums, diag,
      eigen, forwardsolve, gamma, identity, rowMeans, rowSums, sweep,
      tapply
  
  > test_check("greta")
  ℹ Initialising python and checking dependencies, this may take a moment.
  ✔ Initialising python and checking dependencies ... done!
  
  
  WARNING:tensorflow:
  The TensorFlow contrib module will not be included in TensorFlow 2.0.
  For more information, please see:
    * https://github.com/tensorflow/community/blob/master/rfcs/20180907-contrib-sunset.md
    * https://github.com/tensorflow/addons
    * https://github.com/tensorflow/io (for I/O related ops)
  If you depend on functionality not listed there, please file an issue.
  
  
  running 4 chains simultaneously on up to 2 cores
  running 2 samplers in parallel, each on 1 core
  
  
  i Installing python modules into 'greta-env' conda environment, this may take...
  x Installing python modules into 'greta-env' conda environment, this may take...
  
  [ FAIL 6 | WARN 0 | SKIP 142 | PASS 1034 ]
  
  ══ Skipped tests (142) ═════════════════════════════════════════════════════════
  • On CRAN (64): 'test-check-m1.R:4:3', 'test-diagrammer-installed.R:3:3',
    'test-tensorflow-rpkg-stability.R:25:3',
    'test-tensorflow-rpkg-stability.R:31:3',
    'test-tensorflow-rpkg-stability.R:57:3',
    'test-tensorflow-rpkg-stability.R:78:3',
    'test-tensorflow-rpkg-stability.R:86:3',
    'test-tensorflow-rpkg-stability.R:108:3', 'test_as_data.R:111:3',
    'test_calculate.R:193:3', 'test_calculate.R:249:3', 'test_calculate.R:280:3',
    'test_calculate.R:298:3', 'test_calculate.R:318:3', 'test_calculate.R:335:3',
    'test_calculate.R:380:3', 'test_calculate.R:514:3', 'test_calculate.R:525:3',
    'test_calculate.R:536:3', 'test_distributions.R:707:3',
    'test_distributions.R:736:3', 'test_distributions.R:768:3',
    'test_distributions.R:790:3', 'test_distributions.R:841:3',
    'test_distributions.R:924:3', 'test_distributions.R:966:3',
    'test_distributions.R:1009:3', 'test_distributions.R:1078:3',
    'test_extract_replace_combine.R:397:3',
    'test_extract_replace_combine.R:436:3',
    'test_extract_replace_combine.R:448:3',
    'test_extract_replace_combine.R:462:3',
    'test_extract_replace_combine.R:481:3',
    'test_extract_replace_combine.R:624:3', 'test_functions.R:77:5',
    'test_functions.R:91:5', 'test_functions.R:256:3', 'test_functions.R:321:3',
    'test_functions.R:387:3', 'test_functions.R:412:3', 'test_functions.R:439:3',
    'test_functions.R:501:3', 'test_functions.R:529:3', 'test_future.R:10:3',
    'test_future.R:23:3', 'test_future.R:39:3', 'test_greta_array_class.R:11:3',
    'test_iid_samples.R:298:3', 'test_inference.R:85:5',
    'test_inference.R:149:3', 'test_inference.R:269:3', 'test_inference.R:398:3',
    'test_inference.R:414:3', 'test_inference.R:459:3', 'test_inference.R:482:3',
    'test_inference.R:545:3', 'test_inference.R:580:3', 'test_inference.R:608:3',
    'test_inference.R:649:3', 'test_install_greta_deps.R:3:3',
    'test_joint.R:86:3', 'test_joint.R:98:3', 'test_joint.R:111:3',
    'test_misc.R:8:3'
  • check_tf_version() is not TRUE (78): 'test_misc.R:24:3', 'test_misc.R:30:3',
    'test_misc.R:43:3', 'test_misc.R:58:3', 'test_misc.R:66:3',
    'test_misc.R:117:3', 'test_misc.R:157:3', 'test_misc.R:182:3',
    'test_misc.R:193:3', 'test_misc.R:206:3', 'test_misc.R:230:3',
    'test_mixture.R:2:3', 'test_mixture.R:16:3', 'test_mixture.R:32:3',
    'test_mixture.R:47:3', 'test_mixture.R:62:3', 'test_mixture.R:76:3',
    'test_mixture.R:101:3', 'test_mixture.R:115:3', 'test_mixture.R:134:3',
    'test_mixture.R:172:3', 'test_mixture.R:218:3', 'test_mixture.R:255:3',
    'test_operators.R:2:3', 'test_operators.R:19:3', 'test_operators.R:35:3',
    'test_operators.R:49:3', 'test_operators.R:64:3', 'test_operators.R:99:3',
    'test_posteriors.R:2:3', 'test_posteriors.R:36:3', 'test_posteriors.R:46:3',
    'test_posteriors.R:58:3', 'test_posteriors.R:69:3', 'test_posteriors.R:82:3',
    'test_posteriors.R:100:3', 'test_representations.R:2:3',
    'test_representations.R:29:3', 'test_representations.R:56:3',
    'test_representations.R:88:3', 'test_representations.R:131:3',
    'test_representations.R:156:3', 'test_representations.R:192:3',
    'test_representations.R:251:3', 'test_simulate.R:2:3',
    'test_simulate.R:21:3', 'test_simulate.R:58:3', 'test_simulate.R:71:3',
    'test_simulate.R:86:3', 'test_syntax.R:2:3', 'test_syntax.R:16:3',
    'test_syntax.R:35:3', 'test_syntax.R:97:3', 'test_transforms.R:2:3',
    'test_transforms.R:32:3', 'test_truncated.R:9:3', 'test_truncated.R:53:3',
    'test_truncated.R:98:3', 'test_truncated.R:142:3', 'test_truncated.R:192:3',
    'test_truncated.R:237:3', 'test_truncated.R:270:3', 'test_truncated.R:325:3',
    'test_truncated.R:378:3', 'test_truncated.R:426:3', 'test_truncated.R:471:3',
    'test_truncated.R:516:3', 'test_truncated.R:561:3', 'test_truncated.R:606:3',
    'test_truncated.R:640:3', 'test_variables.R:2:3', 'test_variables.R:34:3',
    'test_variables.R:62:3', 'test_variables.R:82:3', 'test_variables.R:104:3',
    'test_variables.R:124:3', 'test_variables.R:150:3', 'test_variables.R:170:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test_distributions.R:418:3'): dirichlet distribution has correct density ──
  `are_all_true` is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  Backtrace:
      ▆
   1. └─greta:::compare_distribution(...) at test_distributions.R:418:3
   2.   └─greta:::compare_op(r_log_density, greta_log_density, tolerance) at D:\RCompile\CRANpkg\local\4.4\greta.Rcheck\tests\testthat\helpers.R:78:3
   3.     └─testthat::expect_true(are_all_true)
  ── Error ('test_inference.R:173:5'): bad mcmc proposals are rejected ───────────
  Error in `eval(call("force", as.symbol(paste0("..", x))))`: argument "..2" is missing, with no default
  Backtrace:
       ▆
    1. ├─greta:::get_output(mcmc(m, n_samples = 10, warmup = 0, pb_update = 10)) at test_inference.R:173:5
    2. │ ├─base::suppressMessages(...) at D:\RCompile\CRANpkg\local\4.4\greta.Rcheck\tests\testthat\helpers.R:310:3
    3. │ │ └─base::withCallingHandlers(...)
    4. │ └─base::withCallingHandlers(...)
    5. └─greta::mcmc(m, n_samples = 10, warmup = 0, pb_update = 10)
    6.   └─greta:::run_samplers(...)
    7.     ├─greta (local) dispatch(...)
    8.     └─sampler$run_chain(...)
    9.       └─greta:::create_progress_bar(...)
   10.         └─glue::glue(...)
   11.           └─glue::glue_data(...)
   12.             └─base::lapply(...)
   13.               └─glue (local) FUN(X[[i]], ...)
   14.                 ├─eval(call("force", as.symbol(paste0("..", x)))) %||% .null
   15.                 ├─base::eval(call("force", as.symbol(paste0("..", x))))
   16.                 │ └─base::eval(call("force", as.symbol(paste0("..", x))))
   17.                 └─base::force(..2)
  ── Error ('test_inference.R:173:5'): bad mcmc proposals are rejected ───────────
  <subscriptOutOfBoundsError/error/condition>
  Error in `trace_list_batches[[1]]`: subscript out of bounds
  Backtrace:
       ▆
    1. ├─greta:::get_output(mcmc(m, n_samples = 10, warmup = 0, pb_update = 10)) at test_inference.R:173:5
    2. │ ├─base::suppressMessages(...) at D:\RCompile\CRANpkg\local\4.4\greta.Rcheck\tests\testthat\helpers.R:310:3
    3. │ │ └─base::withCallingHandlers(...)
    4. │ └─base::withCallingHandlers(...)
    5. └─greta::mcmc(m, n_samples = 10, warmup = 0, pb_update = 10)
    6.   └─greta:::run_samplers(...)
    7.     ├─greta (local) dispatch(...)
    8.     └─sampler$run_chain(...)
    9.       └─self$trace_values(trace_batch_size)
   10.         └─base::lapply(...)
   11.           └─greta (local) FUN(X[[i]], ...)
  ── Failure ('test_inference.R:221:3'): mcmc works with verbosity and warmup ────
  `expr` threw an unexpected error.
  Message: argument "..2" is missing, with no default
  Class:   simpleError/error/condition
  Backtrace:
       ▆
    1. ├─greta:::quietly(...) at test_inference.R:221:3
    2. │ ├─reticulate::py_capture_output(r_out <- capture.output(expr))
    3. │ │ └─base::force(expr)
    4. │ └─utils::capture.output(expr)
    5. │   └─base::withVisible(...elt(i))
    6. ├─greta:::expect_ok(mcmc(m, n_samples = 50, warmup = 50, verbose = TRUE))
    7. │ └─testthat::expect_error(expr, NA)
    8. │   └─testthat:::expect_condition_matching(...)
    9. │     └─testthat:::quasi_capture(...)
   10. │       ├─testthat (local) .capture(...)
   11. │       │ └─base::withCallingHandlers(...)
   12. │       └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   13. └─greta::mcmc(m, n_samples = 50, warmup = 50, verbose = TRUE)
   14.   └─greta:::run_samplers(...)
   15.     ├─greta (local) dispatch(...)
   16.     └─sampler$run_chain(...)
   17.       └─greta:::create_progress_bar(...)
   18.         └─glue::glue(...)
   19.           └─glue::glue_data(...)
   20.             └─base::lapply(...)
   21.               └─glue (local) FUN(X[[i]], ...)
   22.                 ├─eval(call("force", as.symbol(paste0("..", x)))) %||% .null
   23.                 ├─base::eval(call("force", as.symbol(paste0("..", x))))
   24.                 │ └─base::eval(call("force", as.symbol(paste0("..", x))))
   25.                 └─base::force(..2)
  ── Error ('test_inference.R:302:3'): progress bar gives a range of messages ────
  Error in `eval(call("force", as.symbol(paste0("..", x))))`: argument "..2" is missing, with no default
  Backtrace:
      ▆
   1. └─testthat::expect_snapshot(draws <- mock_mcmc(1010)) at test_inference.R:302:3
   2.   └─rlang::cnd_signal(state$error)
  ── Error ('test_inference.R:569:3'): parallel reporting works ──────────────────
  Error in `eval(call("force", as.symbol(paste0("..", x))))`: argument "..2" is missing, with no default
  Backtrace:
       ▆
    1. ├─greta:::get_output(...) at test_inference.R:569:3
    2. │ ├─base::suppressMessages(...) at D:\RCompile\CRANpkg\local\4.4\greta.Rcheck\tests\testthat\helpers.R:310:3
    3. │ │ └─base::withCallingHandlers(...)
    4. │ └─base::withCallingHandlers(...)
    5. └─greta::mcmc(m, warmup = 50, n_samples = 50, chains = 2)
    6.   └─greta:::run_samplers(...)
    7.     └─base::lapply(samplers, future::value)
    8.       ├─future (local) FUN(X[[i]], ...)
    9.       └─future:::value.Future(X[[i]], ...)
   10.         └─future:::signalConditions(...)
  
  [ FAIL 6 | WARN 0 | SKIP 142 | PASS 1034 ]
  Error: Test failures
  Execution halted