Running ‘testthat.R’ [90m/52m]
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] -2.026 0.969 -1.773
   $ sd    : num [1:3] 0.838 0.871 0.909
   $ 0.05q : num [1:3] -3.519 -0.308 -3.197
   $ 0.95q : num [1:3] -0.65 2.428 -0.244
   $ median: num [1:3] -1.983 0.893 -1.803
   $ mode  : num [1:3] -2.1 0.7 -2.1
   - attr(*, "samples")= num [1:10, 1:500] -2.136 -1.495 -1.778 -0.996 -0.426 ...
  Starting estimation...
  iteration = : 1
  grad.norm() = 498.38
  pflug_sum = 0, max_pflug_sum = 0
  ---------------------------
  iteration = : 2
  grad.norm() = 485.996
  pflug_sum = 242064, max_pflug_sum = 242064
  ---------------------------
  iteration = : 3
  grad.norm() = 464.283
  pflug_sum = 467576, max_pflug_sum = 467576
  ---------------------------
  iteration = : 4
  grad.norm() = 437.087
  pflug_sum = 670030, max_pflug_sum = 670030
  ---------------------------
  iteration = : 5
  grad.norm() = 414.371
  pflug_sum = 850542, max_pflug_sum = 850542
  ---------------------------
  iteration = : 6
  grad.norm() = 388.092
  pflug_sum = 1.01076e+06, max_pflug_sum = 1.01076e+06
  ---------------------------
  iteration = : 7
  grad.norm() = 358.805
  pflug_sum = 1.14927e+06, max_pflug_sum = 1.14927e+06
  ---------------------------
  iteration = : 8
  grad.norm() = 321.846
  pflug_sum = 1.26399e+06, max_pflug_sum = 1.26399e+06
  ---------------------------
  iteration = : 9
  grad.norm() = 287.552
  pflug_sum = 1.35609e+06, max_pflug_sum = 1.35609e+06
  ---------------------------
  iteration = : 10
  grad.norm() = 245.85
  pflug_sum = 1.42618e+06, max_pflug_sum = 1.42618e+06
  ---------------------------
  Starting posterior sampling...
  Posterior sampling done.
  Average standard deviation of the posterior W: 0.230465943539214
  Use ngme_post_samples() to access posterior samples and ngme_result() to access latent model parameters.