Running ‘testthat.R’ [90m/58m]
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.962 0.889 -1.806
   $ sd    : num [1:3] 0.893 0.908 0.966
   $ 0.05q : num [1:3] -3.353 -0.662 -3.391
   $ 0.95q : num [1:3] -0.479 2.354 -0.272
   $ median: num [1:3] -1.99 0.882 -1.748
   $ mode  : num [1:3] -1.9 0.9 -1.5
   - attr(*, "samples")= num [1:10, 1:500] -2.046 -3.294 -2.883 -1.875 -0.177 ...
  Starting estimation...
  iteration = : 1
  grad.norm() = 504.519
  pflug_sum = 0, max_pflug_sum = 0
  ---------------------------
  iteration = : 2
  grad.norm() = 481.317
  pflug_sum = 242395, max_pflug_sum = 242395
  ---------------------------
  iteration = : 3
  grad.norm() = 460.257
  pflug_sum = 463575, max_pflug_sum = 463575
  ---------------------------
  iteration = : 4
  grad.norm() = 443.689
  pflug_sum = 666910, max_pflug_sum = 666910
  ---------------------------
  iteration = : 5
  grad.norm() = 414.493
  pflug_sum = 850239, max_pflug_sum = 850239
  ---------------------------
  iteration = : 6
  grad.norm() = 388.743
  pflug_sum = 1.01107e+06, max_pflug_sum = 1.01107e+06
  ---------------------------
  iteration = : 7
  grad.norm() = 369.95
  pflug_sum = 1.15395e+06, max_pflug_sum = 1.15395e+06
  ---------------------------
  iteration = : 8
  grad.norm() = 333.436
  pflug_sum = 1.27606e+06, max_pflug_sum = 1.27606e+06
  ---------------------------
  iteration = : 9
  grad.norm() = 296.527
  pflug_sum = 1.37435e+06, max_pflug_sum = 1.37435e+06
  ---------------------------
  iteration = : 10
  grad.norm() = 260.874
  pflug_sum = 1.45141e+06, max_pflug_sum = 1.45141e+06
  ---------------------------
  Starting posterior sampling...
  Posterior sampling done.
  Average standard deviation of the posterior W: 0.296985773552259
  Use ngme_post_samples() to access posterior samples and ngme_result() to access latent model parameters.