Running ‘testthat.R’ [90m/49m]
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] -2.007 0.891 -1.826
   $ sd    : num [1:3] 0.891 0.927 0.91
   $ 0.05q : num [1:3] -3.655 -0.579 -3.277
   $ 0.95q : num [1:3] -0.593 2.381 -0.325
   $ median: num [1:3] -1.971 0.857 -1.866
   $ mode  : num [1:3] -2.3 0.7 -2.1
   - attr(*, "samples")= num [1:10, 1:500] -1.925 -2.667 -2.831 -0.361 2.473 ...
  Starting estimation...
  iteration = : 1
  grad.norm() = 517.258
  pflug_sum = 0, max_pflug_sum = 0
  ---------------------------
  iteration = : 2
  grad.norm() = 495.112
  pflug_sum = 255267, max_pflug_sum = 255267
  ---------------------------
  iteration = : 3
  grad.norm() = 477.5
  pflug_sum = 491019, max_pflug_sum = 491019
  ---------------------------
  iteration = : 4
  grad.norm() = 452.704
  pflug_sum = 706503, max_pflug_sum = 706503
  ---------------------------
  iteration = : 5
  grad.norm() = 430.94
  pflug_sum = 900523, max_pflug_sum = 900523
  ---------------------------
  iteration = : 6
  grad.norm() = 403.432
  pflug_sum = 1.07405e+06, max_pflug_sum = 1.07405e+06
  ---------------------------
  iteration = : 7
  grad.norm() = 385.462
  pflug_sum = 1.229e+06, max_pflug_sum = 1.229e+06
  ---------------------------
  iteration = : 8
  grad.norm() = 345.276
  pflug_sum = 1.36167e+06, max_pflug_sum = 1.36167e+06
  ---------------------------
  iteration = : 9
  grad.norm() = 316.852
  pflug_sum = 1.47014e+06, max_pflug_sum = 1.47014e+06
  ---------------------------
  iteration = : 10
  grad.norm() = 283.834
  pflug_sum = 1.55948e+06, max_pflug_sum = 1.55948e+06
  ---------------------------
  Starting posterior sampling...
  Posterior sampling done.
  Average standard deviation of the posterior W: 0.242753017741848
  Use ngme_post_samples() to access posterior samples and ngme_result() to access latent model parameters.