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.939 0.868 -1.688
   $ sd    : num [1:3] 0.848 0.916 0.939
   $ 0.05q : num [1:3] -3.316 -0.591 -3.275
   $ 0.95q : num [1:3] -0.539 2.421 -0.263
   $ median: num [1:3] -1.95 0.87 -1.69
   $ mode  : num [1:3] -1.9 1.3 -1.9
   - attr(*, "samples")= num [1:10, 1:500] -1.89 -1.19 -2.14 -0.54 1.36 ...
  Starting estimation...
  iteration = : 1
  grad.norm() = 503.958
  pflug_sum = 0, max_pflug_sum = 0
  ---------------------------
  iteration = : 2
  grad.norm() = 483.598
  pflug_sum = 242658, max_pflug_sum = 242658
  ---------------------------
  iteration = : 3
  grad.norm() = 472.408
  pflug_sum = 470190, max_pflug_sum = 470190
  ---------------------------
  iteration = : 4
  grad.norm() = 442.305
  pflug_sum = 678687, max_pflug_sum = 678687
  ---------------------------
  iteration = : 5
  grad.norm() = 420.07
  pflug_sum = 863275, max_pflug_sum = 863275
  ---------------------------
  iteration = : 6
  grad.norm() = 393.271
  pflug_sum = 1.02653e+06, max_pflug_sum = 1.02653e+06
  ---------------------------
  iteration = : 7
  grad.norm() = 363.323
  pflug_sum = 1.1689e+06, max_pflug_sum = 1.1689e+06
  ---------------------------
  iteration = : 8
  grad.norm() = 327.522
  pflug_sum = 1.28671e+06, max_pflug_sum = 1.28671e+06
  ---------------------------
  iteration = : 9
  grad.norm() = 296.719
  pflug_sum = 1.38306e+06, max_pflug_sum = 1.38306e+06
  ---------------------------
  iteration = : 10
  grad.norm() = 255.245
  pflug_sum = 1.45756e+06, max_pflug_sum = 1.45756e+06
  ---------------------------
  Starting posterior sampling...
  Posterior sampling done.
  Average standard deviation of the posterior W: 0.18700283940571
  Use ngme_post_samples() to access posterior samples and ngme_result() to access latent model parameters.