Running ‘testthat.R’ [89m/57m]
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.7
  - 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.91 0.872 -1.786
   $ sd    : num [1:3] 0.819 0.883 0.913
   $ 0.05q : num [1:3] -3.319 -0.552 -3.285
   $ 0.95q : num [1:3] -0.616 2.427 -0.311
   $ median: num [1:3] -1.925 0.832 -1.773
   $ mode  : num [1:3] -2.1 0.7 -1.3
   - attr(*, "samples")= num [1:10, 1:500] -2.55 -2.68 -2.49 -1.03 1.37 ...
  Starting estimation...
  iteration = : 1
  grad.norm() = 510.602
  pflug_sum = 0, max_pflug_sum = 0
  ---------------------------
  iteration = : 2
  grad.norm() = 492.299
  pflug_sum = 251045, max_pflug_sum = 251045
  ---------------------------
  iteration = : 3
  grad.norm() = 469.964
  pflug_sum = 481846, max_pflug_sum = 481846
  ---------------------------
  iteration = : 4
  grad.norm() = 446.523
  pflug_sum = 690563, max_pflug_sum = 690563
  ---------------------------
  iteration = : 5
  grad.norm() = 426.966
  pflug_sum = 880245, max_pflug_sum = 880245
  ---------------------------
  iteration = : 6
  grad.norm() = 402.026
  pflug_sum = 1.05096e+06, max_pflug_sum = 1.05096e+06
  ---------------------------
  iteration = : 7
  grad.norm() = 374.862
  pflug_sum = 1.20079e+06, max_pflug_sum = 1.20079e+06
  ---------------------------
  iteration = : 8
  grad.norm() = 343.747
  pflug_sum = 1.32916e+06, max_pflug_sum = 1.32916e+06
  ---------------------------
  iteration = : 9
  grad.norm() = 301.75
  pflug_sum = 1.43184e+06, max_pflug_sum = 1.43184e+06
  ---------------------------
  iteration = : 10
  grad.norm() = 274.148
  pflug_sum = 1.51433e+06, max_pflug_sum = 1.51433e+06
  ---------------------------
  Starting posterior sampling...
  Posterior sampling done.
  Average standard deviation of the posterior W: 0.23958483681876
  Use ngme_post_samples() to access posterior samples and ngme_result() to access latent model parameters.