Running ‘testthat.R’ [90m/46m]
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.87 0.8 -1.8
   $ sd    : num [1:3] 0.872 0.949 0.912
   $ 0.05q : num [1:3] -3.37 -0.76 -3.26
   $ 0.95q : num [1:3] -0.484 2.338 -0.311
   $ median: num [1:3] -1.845 0.829 -1.832
   $ mode  : num [1:3] -1.7 0.9 -1.5
   - attr(*, "samples")= num [1:10, 1:500] -3.183 -1.178 -1.54 -1.557 -0.422 ...
  Starting estimation...
  iteration = : 1
  grad.norm() = 490.16
  pflug_sum = 0, max_pflug_sum = 0
  ---------------------------
  iteration = : 2
  grad.norm() = 472.311
  pflug_sum = 231049, max_pflug_sum = 231049
  ---------------------------
  iteration = : 3
  grad.norm() = 456.312
  pflug_sum = 445651, max_pflug_sum = 445651
  ---------------------------
  iteration = : 4
  grad.norm() = 435.178
  pflug_sum = 644087, max_pflug_sum = 644087
  ---------------------------
  iteration = : 5
  grad.norm() = 412.253
  pflug_sum = 823264, max_pflug_sum = 823264
  ---------------------------
  iteration = : 6
  grad.norm() = 386.746
  pflug_sum = 981890, max_pflug_sum = 981890
  ---------------------------
  iteration = : 7
  grad.norm() = 353.568
  pflug_sum = 1.11554e+06, max_pflug_sum = 1.11554e+06
  ---------------------------
  iteration = : 8
  grad.norm() = 325.045
  pflug_sum = 1.22988e+06, max_pflug_sum = 1.22988e+06
  ---------------------------
  iteration = : 9
  grad.norm() = 278.237
  pflug_sum = 1.31962e+06, max_pflug_sum = 1.31962e+06
  ---------------------------
  iteration = : 10
  grad.norm() = 252.511
  pflug_sum = 1.38938e+06, max_pflug_sum = 1.38938e+06
  ---------------------------
  Starting posterior sampling...
  Posterior sampling done.
  Average standard deviation of the posterior W: 0.310324375907212
  Use ngme_post_samples() to access posterior samples and ngme_result() to access latent model parameters.