Running ‘create_test_data.R’ [20s/20s]
  Running ‘testthat.R’ [53s/54s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(lmvar)
  > 
  > source("create_test_data.R")
  > 
  > test_check("lmvar")
  1. Failure: Gradient and Hessian are calculated correctly (@test_gradient_and_hessian.R#79) 
  comp$maxRelDiffGrad is not strictly less than 1e-08. Difference: 9.21e-07
  
  
  2. Failure: Gradient and Hessian are calculated correctly (@test_gradient_and_hessian.R#79) 
  comp$maxRelDiffHess is not strictly less than 2e-07. Difference: 4.97e-09
  
  
  3. Failure: Gradient and Hessian are calculated correctly (@test_gradient_and_hessian.R#79) 
  comp$maxRelDiffGrad is not strictly less than 1e-08. Difference: 1.08e-07
  
  
  4. Failure: Gradient and Hessian are calculated correctly (@test_gradient_and_hessian.R#79) 
  comp$maxRelDiffGrad is not strictly less than 1e-08. Difference: 8.43e-08
  
  
  5. Failure: Gradient and Hessian are calculated correctly (@test_gradient_and_hessian.R#79) 
  comp$maxRelDiffGrad is not strictly less than 1e-08. Difference: 8.22e-08
  
  
  6. Failure: Gradient and Hessian are calculated correctly (@test_gradient_and_hessian.R#79) 
  comp$maxRelDiffGrad is not strictly less than 1e-08. Difference: 1.35e-08
  
  
  7. Failure: Gradient and Hessian are calculated correctly (@test_gradient_and_hessian.R#79) 
  comp$maxRelDiffGrad is not strictly less than 1e-08. Difference: 2.42e-09
  
  
  testthat results ================================================================
  OK: 95 SKIPPED: 0 FAILED: 7
  1. Failure: Gradient and Hessian are calculated correctly (@test_gradient_and_hessian.R#79) 
  2. Failure: Gradient and Hessian are calculated correctly (@test_gradient_and_hessian.R#79) 
  3. Failure: Gradient and Hessian are calculated correctly (@test_gradient_and_hessian.R#79) 
  4. Failure: Gradient and Hessian are calculated correctly (@test_gradient_and_hessian.R#79) 
  5. Failure: Gradient and Hessian are calculated correctly (@test_gradient_and_hessian.R#79) 
  6. Failure: Gradient and Hessian are calculated correctly (@test_gradient_and_hessian.R#79) 
  7. Failure: Gradient and Hessian are calculated correctly (@test_gradient_and_hessian.R#79) 
  
  Error: testthat unit tests failed
  Execution halted