Running ‘spelling.R’
  Running ‘testthat.R’ [13s/35s]
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/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(ReliaGrowR)
  > 
  > test_check("ReliaGrowR")
  Duane Analysis Result
  ----------------------
  Linear model (log-log scale): log(MTBF) ~ log(Time)
  
  Number of observations (failures): 5
  
  Coefficients:
                 Estimate Std. Error
  (Intercept)   3.6144974 0.35199619
  log_cum_times 0.2013244 0.05624037
  
  Log-likelihood: 4.78
  AIC: -3.55, BIC: -4.72
  Confidence level: 95.0%
  n = 100, runtime = 0.014 sec
  n = 500, runtime = 0.019 sec
  n = 1000, runtime = 0.029 sec
  n = 5000, runtime = 0.119 sec
  Reliability Growth Analysis (RGA)
  ---------------------------------
  Model Type: Crow-AMSAA 
  
  
  Number of observations (failures): 5
  Parameters (per segment):
    Growth Rate: 0.2013
    Beta: 0.7987 (SE = 0.0562)
    Lambda: 0.0269
  
  Goodness of Fit:
    Log-likelihood: 4.78
    AIC: -3.55
    BIC: -4.72
  Reliability Demonstration Test (RDT) Plan
  -----------------------------------------
  Distribution:  Exponential 
  Weibull Shape Parameter (Beta):  1 
  Target Reliability:  0.9 
  Mission Time:  1000 
  Input Sample Size (n):  10 
  Required Test Time (T):  2185.43 
  Reliability Demonstration Test (RDT) Plan
  -----------------------------------------
  Distribution:  Exponential 
  Weibull Shape Parameter (Beta):  1 
  Target Reliability:  0.9 
  Mission Time:  1000 
  Input Test Time (T):  2000 
  Required Sample Size (n):  11 
  [ FAIL 1 | WARN 0 | SKIP 1 | PASS 262 ]
  
  ══ Skipped tests (1) ═══════════════════════════════════════════════════════════
  • On CRAN (1): 'test-srr-rga.R:524:5'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-srr-rga.R:630:3'): rga() fits near-noiseless data with user-supplied breaks (Piecewise NHPP) and is reasonably fast ──
  t_near_pw <= t_noisy_pw * 1.2 + 0.1 is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  Noiseless fit took 1.444s vs noisy 0.986s
  
  [ FAIL 1 | WARN 0 | SKIP 1 | PASS 262 ]
  Error: Test failures
  Execution halted