Running ‘testthat.R’ [90m/46m]
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.957 0.862 -1.751
   $ sd    : num [1:3] 0.837 0.873 0.899
   $ 0.05q : num [1:3] -3.472 -0.476 -3.147
   $ 0.95q : num [1:3] -0.649 2.397 -0.317
   $ median: num [1:3] -1.946 0.855 -1.758
   $ mode  : num [1:3] -2.1 0.5 -2.3
   - attr(*, "samples")= num [1:10, 1:500] -2.24 -1.29 -1.88 -1.67 1.97 ...
  Starting estimation...
  iteration = : 1
  grad.norm() = 515.412
  pflug_sum = 0, max_pflug_sum = 0
  ---------------------------
  iteration = : 2
  grad.norm() = 502.103
  pflug_sum = 258285, max_pflug_sum = 258285
  ---------------------------
  iteration = : 3
  grad.norm() = 479.549
  pflug_sum = 498009, max_pflug_sum = 498009
  ---------------------------
  iteration = : 4
  grad.norm() = 465.229
  pflug_sum = 719979, max_pflug_sum = 719979
  ---------------------------
  iteration = : 5
  grad.norm() = 439.354
  pflug_sum = 922996, max_pflug_sum = 922996
  ---------------------------
  iteration = : 6
  grad.norm() = 406.545
  pflug_sum = 1.10072e+06, max_pflug_sum = 1.10072e+06
  ---------------------------
  iteration = : 7
  grad.norm() = 382.621
  pflug_sum = 1.25513e+06, max_pflug_sum = 1.25513e+06
  ---------------------------
  iteration = : 8
  grad.norm() = 360.919
  pflug_sum = 1.39236e+06, max_pflug_sum = 1.39236e+06
  ---------------------------
  iteration = : 9
  grad.norm() = 327.045
  pflug_sum = 1.50885e+06, max_pflug_sum = 1.50885e+06
  ---------------------------
  iteration = : 10
  grad.norm() = 288.954
  pflug_sum = 1.60204e+06, max_pflug_sum = 1.60204e+06
  ---------------------------
  Starting posterior sampling...
  Posterior sampling done.
  Average standard deviation of the posterior W: 0.231463854626956
  Use ngme_post_samples() to access posterior samples and ngme_result() to access latent model parameters.