Running ‘testthat.R’ [90m/47m]
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.933 0.859 -1.738
   $ sd    : num [1:3] 0.867 0.873 0.882
   $ 0.05q : num [1:3] -3.344 -0.664 -3.165
   $ 0.95q : num [1:3] -0.579 2.257 -0.281
   $ median: num [1:3] -1.918 0.878 -1.792
   $ mode  : num [1:3] -2.1 1.3 -1.9
   - attr(*, "samples")= num [1:10, 1:500] -1.82 -2.28 -2.75 -1.1 2.43 ...
  Starting estimation...
  iteration = : 1
  grad.norm() = 495.406
  pflug_sum = 0, max_pflug_sum = 0
  ---------------------------
  iteration = : 2
  grad.norm() = 482.474
  pflug_sum = 238504, max_pflug_sum = 238504
  ---------------------------
  iteration = : 3
  grad.norm() = 457.336
  pflug_sum = 458601, max_pflug_sum = 458601
  ---------------------------
  iteration = : 4
  grad.norm() = 440.415
  pflug_sum = 659185, max_pflug_sum = 659185
  ---------------------------
  iteration = : 5
  grad.norm() = 413.24
  pflug_sum = 840203, max_pflug_sum = 840203
  ---------------------------
  iteration = : 6
  grad.norm() = 394.078
  pflug_sum = 1.00245e+06, max_pflug_sum = 1.00245e+06
  ---------------------------
  iteration = : 7
  grad.norm() = 357.399
  pflug_sum = 1.1425e+06, max_pflug_sum = 1.1425e+06
  ---------------------------
  iteration = : 8
  grad.norm() = 329.959
  pflug_sum = 1.26011e+06, max_pflug_sum = 1.26011e+06
  ---------------------------
  iteration = : 9
  grad.norm() = 299.517
  pflug_sum = 1.35826e+06, max_pflug_sum = 1.35826e+06
  ---------------------------
  iteration = : 10
  grad.norm() = 244.251
  pflug_sum = 1.43083e+06, max_pflug_sum = 1.43083e+06
  ---------------------------
  Starting posterior sampling...
  Posterior sampling done.
  Average standard deviation of the posterior W: 0.220433622018464
  Use ngme_post_samples() to access posterior samples and ngme_result() to access latent model parameters.