Running ‘testthat.R’ [90m/48m]
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.94 0.827 -1.749
   $ sd    : num [1:3] 0.818 0.913 0.919
   $ 0.05q : num [1:3] -3.337 -0.762 -3.249
   $ 0.95q : num [1:3] -0.591 2.314 -0.215
   $ median: num [1:3] -1.951 0.816 -1.729
   $ mode  : num [1:3] -2.1 0.7 -1.7
   - attr(*, "samples")= num [1:10, 1:500] -2.721 -2.07 -1.703 -0.648 2.744 ...
  Starting estimation...
  iteration = : 1
  grad.norm() = 499.39
  pflug_sum = 0, max_pflug_sum = 0
  ---------------------------
  iteration = : 2
  grad.norm() = 481.302
  pflug_sum = 239477, max_pflug_sum = 239477
  ---------------------------
  iteration = : 3
  grad.norm() = 457.8
  pflug_sum = 459020, max_pflug_sum = 459020
  ---------------------------
  iteration = : 4
  grad.norm() = 441.697
  pflug_sum = 660963, max_pflug_sum = 660963
  ---------------------------
  iteration = : 5
  grad.norm() = 413.409
  pflug_sum = 843258, max_pflug_sum = 843258
  ---------------------------
  iteration = : 6
  grad.norm() = 389.691
  pflug_sum = 1.00311e+06, max_pflug_sum = 1.00311e+06
  ---------------------------
  iteration = : 7
  grad.norm() = 352.863
  pflug_sum = 1.14033e+06, max_pflug_sum = 1.14033e+06
  ---------------------------
  iteration = : 8
  grad.norm() = 324.298
  pflug_sum = 1.25384e+06, max_pflug_sum = 1.25384e+06
  ---------------------------
  iteration = : 9
  grad.norm() = 294.079
  pflug_sum = 1.34898e+06, max_pflug_sum = 1.34898e+06
  ---------------------------
  iteration = : 10
  grad.norm() = 250.051
  pflug_sum = 1.42223e+06, max_pflug_sum = 1.42223e+06
  ---------------------------
  Starting posterior sampling...
  Posterior sampling done.
  Average standard deviation of the posterior W: 0.291233917558703
  Use ngme_post_samples() to access posterior samples and ngme_result() to access latent model parameters.