Running ‘testthat.R’ [90m/65m]
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.896 0.783 -1.776
   $ sd    : num [1:3] 0.889 0.893 0.87
   $ 0.05q : num [1:3] -3.38 -0.63 -3.2
   $ 0.95q : num [1:3] -0.374 2.191 -0.391
   $ median: num [1:3] -1.914 0.781 -1.8
   $ mode  : num [1:3] -1.7 0.5 -1.9
   - attr(*, "samples")= num [1:10, 1:500] -0.918 -2.507 -3.784 -1.581 -0.164 ...
  Starting estimation...
  iteration = : 1
  grad.norm() = 496.725
  pflug_sum = 0, max_pflug_sum = 0
  ---------------------------
  iteration = : 2
  grad.norm() = 471.642
  pflug_sum = 234169, max_pflug_sum = 234169
  ---------------------------
  iteration = : 3
  grad.norm() = 451.623
  pflug_sum = 446181, max_pflug_sum = 446181
  ---------------------------
  iteration = : 4
  grad.norm() = 432.749
  pflug_sum = 640561, max_pflug_sum = 640561
  ---------------------------
  iteration = : 5
  grad.norm() = 406.343
  pflug_sum = 816070, max_pflug_sum = 816070
  ---------------------------
  iteration = : 6
  grad.norm() = 373.321
  pflug_sum = 966329, max_pflug_sum = 966329
  ---------------------------
  iteration = : 7
  grad.norm() = 342.789
  pflug_sum = 1.09388e+06, max_pflug_sum = 1.09388e+06
  ---------------------------
  iteration = : 8
  grad.norm() = 312.145
  pflug_sum = 1.20072e+06, max_pflug_sum = 1.20072e+06
  ---------------------------
  iteration = : 9
  grad.norm() = 273.511
  pflug_sum = 1.28555e+06, max_pflug_sum = 1.28555e+06
  ---------------------------
  iteration = : 10
  grad.norm() = 242.917
  pflug_sum = 1.35137e+06, max_pflug_sum = 1.35137e+06
  ---------------------------
  Starting posterior sampling...
  Posterior sampling done.
  Average standard deviation of the posterior W: 0.243525858105245
  Use ngme_post_samples() to access posterior samples and ngme_result() to access latent model parameters.