Running ‘testthat.R’ [90m/57m]
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.888 0.803 -1.778
   $ sd    : num [1:3] 0.871 0.922 0.929
   $ 0.05q : num [1:3] -3.347 -0.658 -3.264
   $ 0.95q : num [1:3] -0.466 2.379 -0.108
   $ median: num [1:3] -1.877 0.792 -1.809
   $ mode  : num [1:3] -1.9 0.3 -2.3
   - attr(*, "samples")= num [1:10, 1:500] -1.58 -2.4 -2.93 -2.05 1.16 ...
  Starting estimation...
  iteration = : 1
  grad.norm() = 509.279
  pflug_sum = 0, max_pflug_sum = 0
  ---------------------------
  iteration = : 2
  grad.norm() = 491.586
  pflug_sum = 248909, max_pflug_sum = 248909
  ---------------------------
  iteration = : 3
  grad.norm() = 476.92
  pflug_sum = 482214, max_pflug_sum = 482214
  ---------------------------
  iteration = : 4
  grad.norm() = 457.856
  pflug_sum = 699853, max_pflug_sum = 699853
  ---------------------------
  iteration = : 5
  grad.norm() = 428.087
  pflug_sum = 895282, max_pflug_sum = 895282
  ---------------------------
  iteration = : 6
  grad.norm() = 406.758
  pflug_sum = 1.06718e+06, max_pflug_sum = 1.06718e+06
  ---------------------------
  iteration = : 7
  grad.norm() = 375.58
  pflug_sum = 1.21917e+06, max_pflug_sum = 1.21917e+06
  ---------------------------
  iteration = : 8
  grad.norm() = 338.975
  pflug_sum = 1.34517e+06, max_pflug_sum = 1.34517e+06
  ---------------------------
  iteration = : 9
  grad.norm() = 311.035
  pflug_sum = 1.45003e+06, max_pflug_sum = 1.45003e+06
  ---------------------------
  iteration = : 10
  grad.norm() = 275.098
  pflug_sum = 1.53511e+06, max_pflug_sum = 1.53511e+06
  ---------------------------
  Starting posterior sampling...
  Posterior sampling done.
  Average standard deviation of the posterior W: 0.30191463478034
  Use ngme_post_samples() to access posterior samples and ngme_result() to access latent model parameters.