Running ‘testthat.R’ [90m/48m]
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.996 0.908 -1.781
   $ sd    : num [1:3] 0.826 0.864 0.926
   $ 0.05q : num [1:3] -3.385 -0.467 -3.347
   $ 0.95q : num [1:3] -0.755 2.372 -0.187
   $ median: num [1:3] -1.96 0.88 -1.78
   $ mode  : num [1:3] -2.1 0.5 -2.1
   - attr(*, "samples")= num [1:10, 1:500] -1.52 -1.92 -3.29 -1.64 -0.34 ...
  Starting estimation...
  iteration = : 1
  grad.norm() = 527.383
  pflug_sum = 0, max_pflug_sum = 0
  ---------------------------
  iteration = : 2
  grad.norm() = 507.887
  pflug_sum = 267033, max_pflug_sum = 267033
  ---------------------------
  iteration = : 3
  grad.norm() = 494.425
  pflug_sum = 517567, max_pflug_sum = 517567
  ---------------------------
  iteration = : 4
  grad.norm() = 467.618
  pflug_sum = 748393, max_pflug_sum = 748393
  ---------------------------
  iteration = : 5
  grad.norm() = 446.839
  pflug_sum = 957024, max_pflug_sum = 957024
  ---------------------------
  iteration = : 6
  grad.norm() = 429.604
  pflug_sum = 1.14829e+06, max_pflug_sum = 1.14829e+06
  ---------------------------
  iteration = : 7
  grad.norm() = 396.694
  pflug_sum = 1.31767e+06, max_pflug_sum = 1.31767e+06
  ---------------------------
  iteration = : 8
  grad.norm() = 373.074
  pflug_sum = 1.4653e+06, max_pflug_sum = 1.4653e+06
  ---------------------------
  iteration = : 9
  grad.norm() = 342.642
  pflug_sum = 1.59175e+06, max_pflug_sum = 1.59175e+06
  ---------------------------
  iteration = : 10
  grad.norm() = 302.744
  pflug_sum = 1.69459e+06, max_pflug_sum = 1.69459e+06
  ---------------------------
  Starting posterior sampling...
  Posterior sampling done.
  Average standard deviation of the posterior W: 0.265926993625334
  Use ngme_post_samples() to access posterior samples and ngme_result() to access latent model parameters.