Running ‘testthat.R’ [33s/37s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(joineR)
  Loading required package: survival
  > 
  > test_check("joineR")
  80% experienced event
  40% experienced event
  70% experienced event
  100% experienced event
  1. Error: competing risks models (@test-comprisk.R#17) -------------------------
  subscript out of bounds
  1: joint(data = data, long.formula = dose ~ time + treat + interaction, surv.formula = Surv(with.time, 
         with.status2) ~ treat, longsep = TRUE, survsep = TRUE, gpt = 3) at testthat/test-comprisk.R:17
  2: longst(longdat, long.formula, model, long.data)
  
  2. Error: bootstrap SEs with competing risks (@test-comprisk.R#54) -------------
  subscript out of bounds
  1: joint(data = data, long.formula = dose ~ time + treat + interaction, surv.formula = Surv(with.time, 
         with.status2) ~ treat, longsep = FALSE, survsep = FALSE, gpt = 3) at testthat/test-comprisk.R:54
  2: longst(longdat, long.formula, model, long.data)
  
  3. Error: ordering of subjects with competing risks (@test-comprisk.R#77) ------
  subscript out of bounds
  1: joint(data = data, long.formula = dose ~ time + treat + interaction, surv.formula = Surv(with.time, 
         with.status2) ~ treat, longsep = FALSE, survsep = FALSE, gpt = 3) at testthat/test-comprisk.R:77
  2: longst(longdat, long.formula, model, long.data)
  
  4. Error: bootstrap SE estimation print (@test-misc.R#45) ----------------------
  subscript out of bounds
  1: joint(data = heart.valve.jd, long.formula = log.lvmi ~ 1 + time + hs, surv.formula = Surv(fuyrs, 
         status) ~ hs, model = "intslope", tol = 1e-04) at testthat/test-misc.R:45
  2: longst(longdat, long.formula, model, long.data)
  
  5. Error: random-intercept and random-slope models (@test-models.R#20) ---------
  subscript out of bounds
  1: joint(data = heart.valve.jd, long.formula = log.lvmi ~ 1 + time + hs, surv.formula = Surv(fuyrs, 
         status) ~ hs, model = "intslope", tol = 1e-05) at testthat/test-models.R:20
  2: longst(longdat, long.formula, model, long.data)
  
  6. Error: no survival model covariates (@test-models.R#58) ---------------------
  subscript out of bounds
  1: joint(data = heart.valve.jd, long.formula = log.lvmi ~ 1 + time + hs, surv.formula = Surv(fuyrs, 
         status) ~ 1, model = "intslope", tol = 1e-05) at testthat/test-models.R:58
  2: longst(longdat, long.formula, model, long.data)
  
  7. Error: seperate association models (@test-models.R#160) ---------------------
  subscript out of bounds
  1: joint(data = heart.valve.jd, long.formula = log.lvmi ~ 1 + time + hs, surv.formula = Surv(fuyrs, 
         status) ~ hs, model = "intslope", sepassoc = TRUE, tol = 1e-04) at testthat/test-models.R:160
  2: longst(longdat, long.formula, model, long.data)
  
  8. Error: bootstrap SE (@test-models.R#190) ------------------------------------
  subscript out of bounds
  1: joint(data = heart.valve.jd, long.formula = log.lvmi ~ 1 + time + hs, surv.formula = Surv(fuyrs, 
         status) ~ hs, model = "intslope", tol = 1e-04) at testthat/test-models.R:190
  2: longst(longdat, long.formula, model, long.data)
  
  testthat results ================================================================
  OK: 69 SKIPPED: 0 FAILED: 8
  1. Error: competing risks models (@test-comprisk.R#17) 
  2. Error: bootstrap SEs with competing risks (@test-comprisk.R#54) 
  3. Error: ordering of subjects with competing risks (@test-comprisk.R#77) 
  4. Error: bootstrap SE estimation print (@test-misc.R#45) 
  5. Error: random-intercept and random-slope models (@test-models.R#20) 
  6. Error: no survival model covariates (@test-models.R#58) 
  7. Error: seperate association models (@test-models.R#160) 
  8. Error: bootstrap SE (@test-models.R#190) 
  
  Error: testthat unit tests failed
  Execution halted