Running ‘testthat.R’ [90m/65m]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > 
  > test_check("ngme2")
  Loading required package: ngme2
  This is ngme2 of version 0.9.8
  - See our homepage: https://davidbolin.github.io/ngme2 for more details.
  
  Attaching package: 'ngme2'
  
  The following object is masked from 'package:stats':
  
      ar
  
  List of 6
   $ mean  : num [1:3] -1.837 0.862 -1.726
   $ sd    : num [1:3] 0.822 0.907 0.914
   $ 0.05q : num [1:3] -3.225 -0.626 -3.124
   $ 0.95q : num [1:3] -0.616 2.309 -0.163
   $ median: num [1:3] -1.853 0.883 -1.764
   $ mode  : num [1:3] -1.9 0.9 -1.5
   - attr(*, "samples")= num [1:10, 1:500] -1.293 -1.777 -1.472 0.259 3.107 ...
  Starting estimation...
  iteration = : 1
  grad.norm() = 490.351
  pflug_sum = 0, max_pflug_sum = 0
  ---------------------------
  iteration = : 2
  grad.norm() = 470.612
  pflug_sum = 230055, max_pflug_sum = 230055
  ---------------------------
  iteration = : 3
  grad.norm() = 448.049
  pflug_sum = 439472, max_pflug_sum = 439472
  ---------------------------
  iteration = : 4
  grad.norm() = 426.957
  pflug_sum = 628888, max_pflug_sum = 628888
  ---------------------------
  iteration = : 5
  grad.norm() = 398.412
  pflug_sum = 797990, max_pflug_sum = 797990
  ---------------------------
  iteration = : 6
  grad.norm() = 370.84
  pflug_sum = 945171, max_pflug_sum = 945171
  ---------------------------
  iteration = : 7
  grad.norm() = 338.689
  pflug_sum = 1.06938e+06, max_pflug_sum = 1.06938e+06
  ---------------------------
  iteration = : 8
  grad.norm() = 313.92
  pflug_sum = 1.17515e+06, max_pflug_sum = 1.17515e+06
  ---------------------------
  iteration = : 9
  grad.norm() = 267.326
  pflug_sum = 1.25811e+06, max_pflug_sum = 1.25811e+06
  ---------------------------
  iteration = : 10
  grad.norm() = 243.571
  pflug_sum = 1.3225e+06, max_pflug_sum = 1.3225e+06
  ---------------------------
  Starting posterior sampling...
  Posterior sampling done.
  Average standard deviation of the posterior W: 0.315249477545648
  Use ngme_post_samples() to access posterior samples and ngme_result() to access latent model parameters.