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.914 0.864 -1.751
   $ sd    : num [1:3] 0.857 0.891 0.881
   $ 0.05q : num [1:3] -3.317 -0.556 -3.147
   $ 0.95q : num [1:3] -0.517 2.433 -0.337
   $ median: num [1:3] -1.897 0.919 -1.723
   $ mode  : num [1:3] -1.9 1.1 -1.5
   - attr(*, "samples")= num [1:10, 1:500] -1.869 -1.533 -1.139 -0.448 1.822 ...
  Starting estimation...
  iteration = : 1
  grad.norm() = 501.774
  pflug_sum = 0, max_pflug_sum = 0
  ---------------------------
  iteration = : 2
  grad.norm() = 477.685
  pflug_sum = 239238, max_pflug_sum = 239238
  ---------------------------
  iteration = : 3
  grad.norm() = 457.713
  pflug_sum = 457413, max_pflug_sum = 457413
  ---------------------------
  iteration = : 4
  grad.norm() = 436.772
  pflug_sum = 656389, max_pflug_sum = 656389
  ---------------------------
  iteration = : 5
  grad.norm() = 414.153
  pflug_sum = 836110, max_pflug_sum = 836110
  ---------------------------
  iteration = : 6
  grad.norm() = 383.585
  pflug_sum = 994177, max_pflug_sum = 994177
  ---------------------------
  iteration = : 7
  grad.norm() = 355.049
  pflug_sum = 1.13e+06, max_pflug_sum = 1.13e+06
  ---------------------------
  iteration = : 8
  grad.norm() = 325.103
  pflug_sum = 1.24482e+06, max_pflug_sum = 1.24482e+06
  ---------------------------
  iteration = : 9
  grad.norm() = 288.008
  pflug_sum = 1.33705e+06, max_pflug_sum = 1.33705e+06
  ---------------------------
  iteration = : 10
  grad.norm() = 250.591
  pflug_sum = 1.40872e+06, max_pflug_sum = 1.40872e+06
  ---------------------------
  Starting posterior sampling...
  Posterior sampling done.
  Average standard deviation of the posterior W: 0.261146703594484
  Use ngme_post_samples() to access posterior samples and ngme_result() to access latent model parameters.