Running ‘testthat.R’ [90m/70m]
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.967 0.833 -1.877
   $ sd    : num [1:3] 0.87 0.857 0.907
   $ 0.05q : num [1:3] -3.431 -0.591 -3.397
   $ 0.95q : num [1:3] -0.463 2.213 -0.364
   $ median: num [1:3] -1.956 0.836 -1.837
   $ mode  : num [1:3] -1.9 1.1 -1.7
   - attr(*, "samples")= num [1:10, 1:500] -2.058 -1.481 -0.166 1.574 3.343 ...
  Starting estimation...
  iteration = : 1
  grad.norm() = 514.349
  pflug_sum = 0, max_pflug_sum = 0
  ---------------------------
  iteration = : 2
  grad.norm() = 491.179
  pflug_sum = 251872, max_pflug_sum = 251872
  ---------------------------
  iteration = : 3
  grad.norm() = 471.89
  pflug_sum = 482557, max_pflug_sum = 482557
  ---------------------------
  iteration = : 4
  grad.norm() = 447.521
  pflug_sum = 693235, max_pflug_sum = 693235
  ---------------------------
  iteration = : 5
  grad.norm() = 424.153
  pflug_sum = 882615, max_pflug_sum = 882615
  ---------------------------
  iteration = : 6
  grad.norm() = 398.928
  pflug_sum = 1.05011e+06, max_pflug_sum = 1.05011e+06
  ---------------------------
  iteration = : 7
  grad.norm() = 372.09
  pflug_sum = 1.19761e+06, max_pflug_sum = 1.19761e+06
  ---------------------------
  iteration = : 8
  grad.norm() = 337.013
  pflug_sum = 1.3218e+06, max_pflug_sum = 1.3218e+06
  ---------------------------
  iteration = : 9
  grad.norm() = 304.83
  pflug_sum = 1.42244e+06, max_pflug_sum = 1.42244e+06
  ---------------------------
  iteration = : 10
  grad.norm() = 271.852
  pflug_sum = 1.50483e+06, max_pflug_sum = 1.50483e+06
  ---------------------------
  Starting posterior sampling...
  Posterior sampling done.
  Average standard deviation of the posterior W: 0.253565770847962
  Use ngme_post_samples() to access posterior samples and ngme_result() to access latent model parameters.