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.86 0.806 -1.773
   $ sd    : num [1:3] 0.845 0.896 0.908
   $ 0.05q : num [1:3] -3.341 -0.724 -3.238
   $ 0.95q : num [1:3] -0.51 2.268 -0.264
   $ median: num [1:3] -1.804 0.805 -1.747
   $ mode  : num [1:3] -1.7 0.7 -1.7
   - attr(*, "samples")= num [1:10, 1:500] -1.05 -1.73 -1.74 -1.29 1.23 ...
  Starting estimation...
  iteration = : 1
  grad.norm() = 495.569
  pflug_sum = 0, max_pflug_sum = 0
  ---------------------------
  iteration = : 2
  grad.norm() = 478.309
  pflug_sum = 236585, max_pflug_sum = 236585
  ---------------------------
  iteration = : 3
  grad.norm() = 453.889
  pflug_sum = 453208, max_pflug_sum = 453208
  ---------------------------
  iteration = : 4
  grad.norm() = 436.56
  pflug_sum = 650995, max_pflug_sum = 650995
  ---------------------------
  iteration = : 5
  grad.norm() = 420.36
  pflug_sum = 833579, max_pflug_sum = 833579
  ---------------------------
  iteration = : 6
  grad.norm() = 390.464
  pflug_sum = 995650, max_pflug_sum = 995650
  ---------------------------
  iteration = : 7
  grad.norm() = 363.837
  pflug_sum = 1.13746e+06, max_pflug_sum = 1.13746e+06
  ---------------------------
  iteration = : 8
  grad.norm() = 331.614
  pflug_sum = 1.25748e+06, max_pflug_sum = 1.25748e+06
  ---------------------------
  iteration = : 9
  grad.norm() = 291.096
  pflug_sum = 1.35345e+06, max_pflug_sum = 1.35345e+06
  ---------------------------
  iteration = : 10
  grad.norm() = 260.265
  pflug_sum = 1.42907e+06, max_pflug_sum = 1.42907e+06
  ---------------------------
  Starting posterior sampling...
  Posterior sampling done.
  Average standard deviation of the posterior W: 0.247905985995247
  Use ngme_post_samples() to access posterior samples and ngme_result() to access latent model parameters.