Running ‘testthat.R’ [0m/90m]
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.912 0.857 -1.777
   $ sd    : num [1:3] 0.848 0.917 0.914
   $ 0.05q : num [1:3] -3.34 -0.544 -3.343
   $ 0.95q : num [1:3] -0.56 2.537 -0.314
   $ median: num [1:3] -1.901 0.831 -1.809
   $ mode  : num [1:3] -2.3 0.7 -1.9
   - attr(*, "samples")= num [1:10, 1:500] -2 -1.4 -2.86 -1.63 3.65 ...
  Starting estimation...
  iteration = : 1
  grad.norm() = 501.784
  pflug_sum = 0, max_pflug_sum = 0
  ---------------------------
  iteration = : 2
  grad.norm() = 484.045
  pflug_sum = 242519, max_pflug_sum = 242519
  ---------------------------
  iteration = : 3
  grad.norm() = 461.131
  pflug_sum = 465508, max_pflug_sum = 465508
  ---------------------------
  iteration = : 4
  grad.norm() = 439.071
  pflug_sum = 667036, max_pflug_sum = 667036
  ---------------------------
  iteration = : 5
  grad.norm() = 415.316
  pflug_sum = 848246, max_pflug_sum = 848246
  ---------------------------
  iteration = : 6
  grad.norm() = 391.499
  pflug_sum = 1.01026e+06, max_pflug_sum = 1.01026e+06
  ---------------------------
  iteration = : 7
  grad.norm() = 352.314
  pflug_sum = 1.14783e+06, max_pflug_sum = 1.14783e+06
  ---------------------------
  iteration = : 8
  grad.norm() = 332.769
  pflug_sum = 1.26438e+06, max_pflug_sum = 1.26438e+06
  ---------------------------
  iteration = : 9
  grad.norm() = 293.504
  pflug_sum = 1.3615e+06, max_pflug_sum = 1.3615e+06
  ---------------------------
  iteration = : 10
  grad.norm() = 257.971
  pflug_sum = 1.43581e+06, max_pflug_sum = 1.43581e+06
  ---------------------------
  Starting posterior sampling...
  Posterior sampling done.
  Average standard deviation of the posterior W: 0.228749377896109
  Use ngme_post_samples() to access posterior samples and ngme_result() to access latent model parameters.