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.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.954 0.836 -1.781
   $ sd    : num [1:3] 0.858 0.91 0.876
   $ 0.05q : num [1:3] -3.408 -0.634 -3.34
   $ 0.95q : num [1:3] -0.534 2.394 -0.372
   $ median: num [1:3] -1.935 0.812 -1.746
   $ mode  : num [1:3] -1.5 0.9 -1.7
   - attr(*, "samples")= num [1:10, 1:500] -1.828 -1.955 -2.324 -0.718 0.154 ...
  Starting estimation...
  iteration = : 1
  grad.norm() = 499.923
  pflug_sum = 0, max_pflug_sum = 0
  ---------------------------
  iteration = : 2
  grad.norm() = 482.368
  pflug_sum = 240453, max_pflug_sum = 240453
  ---------------------------
  iteration = : 3
  grad.norm() = 457.377
  pflug_sum = 459915, max_pflug_sum = 459915
  ---------------------------
  iteration = : 4
  grad.norm() = 443.375
  pflug_sum = 661880, max_pflug_sum = 661880
  ---------------------------
  iteration = : 5
  grad.norm() = 410.98
  pflug_sum = 843156, max_pflug_sum = 843156
  ---------------------------
  iteration = : 6
  grad.norm() = 385.576
  pflug_sum = 1.00073e+06, max_pflug_sum = 1.00073e+06
  ---------------------------
  iteration = : 7
  grad.norm() = 358.673
  pflug_sum = 1.13794e+06, max_pflug_sum = 1.13794e+06
  ---------------------------
  iteration = : 8
  grad.norm() = 322.071
  pflug_sum = 1.25304e+06, max_pflug_sum = 1.25304e+06
  ---------------------------
  iteration = : 9
  grad.norm() = 294.656
  pflug_sum = 1.34731e+06, max_pflug_sum = 1.34731e+06
  ---------------------------
  iteration = : 10
  grad.norm() = 250.85
  pflug_sum = 1.4206e+06, max_pflug_sum = 1.4206e+06
  ---------------------------
  Starting posterior sampling...
  Posterior sampling done.
  Average standard deviation of the posterior W: 0.278374759425219
  Use ngme_post_samples() to access posterior samples and ngme_result() to access latent model parameters.