Running ‘testthat.R’ [5s/21s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(rsimsum)
  
  Attaching package: 'rsimsum'
  
  The following object is masked from 'package:utils':
  
      zip
  
  > 
  > test_check("rsimsum")
  ── 1. Error: bar checks arguments properly (@test-bar.R#6)  ────────────────────
  LOGICAL() can only be applied to a 'logical', not a 'NULL'
  1: simsum(data = MIsim, estvarname = "b", true = 0.5, se = "se", methodvar = "method") at testthat/test-bar.R:6
  2: checkmate::assert_subset(estvarname, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  ── 2. Error: bar returns a ggplot object (@test-bar.R#22)  ─────────────────────
  LOGICAL() can only be applied to a 'logical', not a 'builtin'
  1: simsum(data = MIsim, estvarname = "b", true = 0.5, se = "se", methodvar = "method") at testthat/test-bar.R:22
  2: checkmate::assert_subset(estvarname, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  ── 3. Error: bar does not plot CI when simsum in called with mcse = FALSE (@test
  LOGICAL() can only be applied to a 'logical', not a 'NULL'
  1: simsum(data = MIsim, estvarname = "b", true = 0.5, se = "se", methodvar = "method", 
         mcse = FALSE) at testthat/test-bar.R:32
  2: checkmate::assert_subset(estvarname, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  ── 4. Error: bar works with 'by' factors (@test-bar.R#42)  ─────────────────────
  LOGICAL() can only be applied to a 'logical', not a 'builtin'
  1: simsum(data = relhaz, estvarname = "theta", true = -0.5, se = "se", methodvar = "model", 
         by = c("n", "baseline")) at testthat/test-bar.R:42
  2: checkmate::assert_subset(estvarname, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  ── 5. Error: bar works when changing graphical parameters (@test-bar.R#58)  ────
  LOGICAL() can only be applied to a 'logical', not a 'NULL'
  1: simsum(data = MIsim, estvarname = "b", true = 0.5, se = "se", methodvar = "method") at testthat/test-bar.R:58
  2: checkmate::assert_subset(estvarname, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  ── 6. Error: bar with all 'sstat' options, with and without 'target' (@test-bar.
  LOGICAL() can only be applied to a 'logical', not a 'builtin'
  1: simsum(data = MIsim, estvarname = "b", true = 0.5, se = "se", methodvar = "method") at testthat/test-bar.R:78
  2: checkmate::assert_subset(estvarname, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  ── 7. Error: dropbig works ok and prints fine (@test-dropbig.R#6)  ─────────────
  LOGICAL() can only be applied to a 'logical', not a 'unknown type #28'
  1: simsum(data = MIsim, estvarname = "b", true = 0.5, se = "se", methodvar = "method", 
         mcse = TRUE, dropbig = TRUE, max = 3, semax = 1.5) at testthat/test-dropbig.R:6
  2: checkmate::assert_subset(estvarname, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  ── 8. Error: dropbig returns a data.frame when dropbig = TRUE (@test-dropbig.R#3
  LOGICAL() can only be applied to a 'logical', not a 'raw'
  1: simsum(data = MIsim, estvarname = "b", true = 0.5, se = "se", methodvar = "method", 
         mcse = TRUE, dropbig = TRUE, max = 3, semax = 1.5) at testthat/test-dropbig.R:30
  2: checkmate::assert_subset(estvarname, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  ── 9. Error: dropbig returns NULL when dropbig = FALSE (@test-dropbig.R#43)  ───
  LOGICAL() can only be applied to a 'logical', not a 'builtin'
  1: simsum(data = MIsim, estvarname = "b", true = 0.5, se = "se", methodvar = "method", 
         mcse = TRUE, dropbig = FALSE) at testthat/test-dropbig.R:43
  2: checkmate::assert_subset(estvarname, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  ── 10. Error: forest checks arguments properly (@test-forest.R#6)  ─────────────
  LOGICAL() can only be applied to a 'logical', not a 'builtin'
  1: simsum(data = MIsim, estvarname = "b", true = 0.5, se = "se", methodvar = "method") at testthat/test-forest.R:6
  2: checkmate::assert_subset(estvarname, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  ── 11. Error: forest returns a ggplot object (@test-forest.R#22)  ──────────────
  LOGICAL() can only be applied to a 'logical', not a 'builtin'
  1: simsum(data = MIsim, estvarname = "b", true = 0.5, se = "se", methodvar = "method") at testthat/test-forest.R:22
  2: checkmate::assert_subset(estvarname, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  ── 12. Error: forest does not plot CI when simsum in called with mcse = FALSE (@
  LOGICAL() can only be applied to a 'logical', not a 'NULL'
  1: simsum(data = MIsim, estvarname = "b", true = 0.5, se = "se", methodvar = "method", 
         mcse = FALSE) at testthat/test-forest.R:32
  2: checkmate::assert_subset(estvarname, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  ── 13. Error: forest works with 'by' factors (@test-forest.R#42)  ──────────────
  LOGICAL() can only be applied to a 'logical', not a 'builtin'
  1: simsum(data = relhaz, estvarname = "theta", true = -0.5, se = "se", methodvar = "model", 
         by = c("n", "baseline")) at testthat/test-forest.R:42
  2: checkmate::assert_subset(estvarname, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  ── 14. Error: forest works when changing graphical parameters (@test-forest.R#58
  LOGICAL() can only be applied to a 'logical', not a 'builtin'
  1: simsum(data = MIsim, estvarname = "b", true = 0.5, se = "se", methodvar = "method") at testthat/test-forest.R:58
  2: checkmate::assert_subset(estvarname, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  ── 15. Error: forest with all 'sstat' options, with and without 'target' (@test-
  LOGICAL() can only be applied to a 'logical', not a 'NULL'
  1: simsum(data = MIsim, estvarname = "b", true = 0.5, se = "se", methodvar = "method") at testthat/test-forest.R:74
  2: checkmate::assert_subset(estvarname, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  ── 16. Error: format.simsum returns a simsum object (@test-format.R#5)  ────────
  LOGICAL() can only be applied to a 'logical', not a 'builtin'
  1: simsum(data = MIsim, estvarname = "b", true = 0.5, se = "se", methodvar = "method") at testthat/test-format.R:5
  2: checkmate::assert_subset(estvarname, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  ── 17. Error: the summ slot of a formatted simsum object is a data.frame (@test-
  LOGICAL() can only be applied to a 'logical', not a 'builtin'
  1: simsum(data = MIsim, estvarname = "b", true = 0.5, se = "se", methodvar = "method") at testthat/test-format.R:12
  2: checkmate::assert_subset(estvarname, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  ── 18. Error: all columns of a formatted object are string-type columns (@test-f
  LOGICAL() can only be applied to a 'logical', not a 'NULL'
  1: simsum(data = MIsim, estvarname = "b", true = 0.5, se = "se", methodvar = "method") at testthat/test-format.R:19
  2: checkmate::assert_subset(estvarname, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  ── 19. Error: format.summary.simsum returns a summary.simsum object (@test-forma
  LOGICAL() can only be applied to a 'logical', not a 'builtin'
  1: simsum(data = MIsim, estvarname = "b", true = 0.5, se = "se", methodvar = "method") at testthat/test-format.R:29
  2: checkmate::assert_subset(estvarname, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  ── 20. Error: the summ slot of a formatted summary.simsum object is a data.frame
  LOGICAL() can only be applied to a 'logical', not a 'unknown type #28'
  1: simsum(data = MIsim, estvarname = "b", true = 0.5, se = "se", methodvar = "method") at testthat/test-format.R:36
  2: checkmate::assert_subset(estvarname, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  ── 21. Error: all columns of a formatted object are string-type columns (@test-f
  LOGICAL() can only be applied to a 'logical', not a 'unknown type #28'
  1: simsum(data = MIsim, estvarname = "b", true = 0.5, se = "se", methodvar = "method") at testthat/test-format.R:43
  2: checkmate::assert_subset(estvarname, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  ── 22. Error: format.multisimsum returns a multisimsum object (@test-format.R#53
  LOGICAL() can only be applied to a 'logical', not a 'unknown type #28'
  1: multisimsum(data = frailty, par = "par", true = c(trt = -0.5, fv = 0.75), estvarname = "b", 
         se = "se", methodvar = "model", by = "fv_dist") at testthat/test-format.R:53
  2: checkmate::assert_subset(x = par, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  ── 23. Error: the summ slot of a formatted multisimsum object is a data.frame (@
  LOGICAL() can only be applied to a 'logical', not a 'unknown type #28'
  1: multisimsum(data = frailty, par = "par", true = c(trt = -0.5, fv = 0.75), estvarname = "b", 
         se = "se", methodvar = "model", by = "fv_dist") at testthat/test-format.R:60
  2: checkmate::assert_subset(x = par, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  ── 24. Error: all columns of a formatted object are string-type columns (@test-f
  LOGICAL() can only be applied to a 'logical', not a 'unknown type #28'
  1: multisimsum(data = frailty, par = "par", true = c(trt = -0.5, fv = 0.75), estvarname = "b", 
         se = "se", methodvar = "model", by = "fv_dist") at testthat/test-format.R:67
  2: checkmate::assert_subset(x = par, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  ── 25. Error: format.summary.multisimsum returns a multisimsum object (@test-for
  LOGICAL() can only be applied to a 'logical', not a 'unknown type #28'
  1: multisimsum(data = frailty, par = "par", true = c(trt = -0.5, fv = 0.75), estvarname = "b", 
         se = "se", methodvar = "model", by = "fv_dist") at testthat/test-format.R:77
  2: checkmate::assert_subset(x = par, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  ── 26. Error: the summ slot of a formatted summary.multisimsum object is a data.
  LOGICAL() can only be applied to a 'logical', not a 'unknown type #28'
  1: multisimsum(data = frailty, par = "par", true = c(trt = -0.5, fv = 0.75), estvarname = "b", 
         se = "se", methodvar = "model", by = "fv_dist") at testthat/test-format.R:84
  2: checkmate::assert_subset(x = par, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  ── 27. Error: all columns of a formatted object are string-type columns (@test-f
  LOGICAL() can only be applied to a 'logical', not a 'unknown type #28'
  1: multisimsum(data = frailty, par = "par", true = c(trt = -0.5, fv = 0.75), estvarname = "b", 
         se = "se", methodvar = "model", by = "fv_dist") at testthat/test-format.R:91
  2: checkmate::assert_subset(x = par, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  ── 28. Error: get_data.simsum returns a data.frame (@test-get_data.R#5)  ───────
  LOGICAL() can only be applied to a 'logical', not a 'unknown type #28'
  1: simsum(data = MIsim, estvarname = "b", true = 0.5, se = "se", methodvar = "method", 
         mcse = TRUE) at testthat/test-get_data.R:5
  2: checkmate::assert_subset(estvarname, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  ── 29. Error: get_data.simsum asking for a subset of summary statistics only (@t
  LOGICAL() can only be applied to a 'logical', not a 'unknown type #28'
  1: simsum(data = MIsim, estvarname = "b", true = 0.5, se = "se", methodvar = "method", 
         mcse = TRUE) at testthat/test-get_data.R:11
  2: checkmate::assert_subset(estvarname, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  ── 30. Error: get_data.simsum asking for bias returns only bias (@test-get_data.
  LOGICAL() can only be applied to a 'logical', not a 'unknown type #28'
  1: simsum(data = MIsim, estvarname = "b", true = 0.5, se = "se", methodvar = "method", 
         mcse = TRUE) at testthat/test-get_data.R:19
  2: checkmate::assert_subset(estvarname, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  ── 31. Error: get_data.summary.simsum returns a data.frame (@test-get_data.R#25)
  LOGICAL() can only be applied to a 'logical', not a 'unknown type #28'
  1: simsum(data = MIsim, estvarname = "b", true = 0.5, se = "se", methodvar = "method", 
         mcse = TRUE) at testthat/test-get_data.R:25
  2: checkmate::assert_subset(estvarname, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  ── 32. Error: get_data.summary.simsum asking for a subset of summary statistics 
  LOGICAL() can only be applied to a 'logical', not a 'unknown type #28'
  1: simsum(data = MIsim, estvarname = "b", true = 0.5, se = "se", methodvar = "method", 
         mcse = TRUE) at testthat/test-get_data.R:32
  2: checkmate::assert_subset(estvarname, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  ── 33. Error: get_data.summary.simsum asking for bias returns only bias (@test-g
  LOGICAL() can only be applied to a 'logical', not a 'unknown type #28'
  1: simsum(data = MIsim, estvarname = "b", true = 0.5, se = "se", methodvar = "method", 
         mcse = TRUE) at testthat/test-get_data.R:41
  2: checkmate::assert_subset(estvarname, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  ── 34. Error: get_data.multisimsum returns a data.frame (@test-get_data.R#48)  ─
  LOGICAL() can only be applied to a 'logical', not a 'unknown type #28'
  1: multisimsum(data = frailty, par = "par", true = c(trt = -0.5, fv = 0.75), estvarname = "b", 
         se = "se", methodvar = "model", by = "fv_dist") at testthat/test-get_data.R:48
  2: checkmate::assert_subset(x = par, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  ── 35. Error: get_data.multisimsum asking for a subset of summary statistics onl
  LOGICAL() can only be applied to a 'logical', not a 'unknown type #28'
  1: multisimsum(data = frailty, par = "par", true = c(trt = -0.5, fv = 0.75), estvarname = "b", 
         se = "se", methodvar = "model", by = "fv_dist") at testthat/test-get_data.R:54
  2: checkmate::assert_subset(x = par, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  ── 36. Error: get_data.multisimsum asking for bias returns only bias (@test-get_
  LOGICAL() can only be applied to a 'logical', not a 'unknown type #28'
  1: multisimsum(data = frailty, par = "par", true = c(trt = -0.5, fv = 0.75), estvarname = "b", 
         se = "se", methodvar = "model", by = "fv_dist") at testthat/test-get_data.R:62
  2: checkmate::assert_subset(x = par, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  ── 37. Error: get_data.summary.multisimsum returns a data.frame (@test-get_data.
  LOGICAL() can only be applied to a 'logical', not a 'unknown type #28'
  1: multisimsum(data = frailty, par = "par", true = c(trt = -0.5, fv = 0.75), estvarname = "b", 
         se = "se", methodvar = "model", by = "fv_dist") at testthat/test-get_data.R:68
  2: checkmate::assert_subset(x = par, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  ── 38. Error: get_data.summary.multisimsum asking for a subset of summary statis
  LOGICAL() can only be applied to a 'logical', not a 'unknown type #28'
  1: multisimsum(data = frailty, par = "par", true = c(trt = -0.5, fv = 0.75), estvarname = "b", 
         se = "se", methodvar = "model", by = "fv_dist") at testthat/test-get_data.R:75
  2: checkmate::assert_subset(x = par, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  ── 39. Error: get_data.summary.multisimsum asking for bias returns only bias (@t
  LOGICAL() can only be applied to a 'logical', not a 'unknown type #28'
  1: multisimsum(data = frailty, par = "par", true = c(trt = -0.5, fv = 0.75), estvarname = "b", 
         se = "se", methodvar = "model", by = "fv_dist") at testthat/test-get_data.R:84
  2: checkmate::assert_subset(x = par, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  ── 40. Error: get_data for miss objects works as expected (@test-get_data.R#91) 
  LOGICAL() can only be applied to a 'logical', not a 'NULL'
  1: miss(data = frailty, estvarname = "b", se = "se", par = "par", methodvar = "model", 
         by = "fv_dist") at testthat/test-get_data.R:91
  2: checkmate::assert_subset(estvarname, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  ── 41. Error: description argument of get_data works as expected (@test-get_data
  LOGICAL() can only be applied to a 'logical', not a 'NULL'
  1: simsum(data = MIsim, estvarname = "b", true = 0.5, se = "se", methodvar = "method", 
         mcse = TRUE) at testthat/test-get_data.R:96
  2: checkmate::assert_subset(estvarname, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  ── 42. Error: get_data throws errors as expected (@test-get_data.R#111)  ───────
  LOGICAL() can only be applied to a 'logical', not a 'NULL'
  1: simsum(data = MIsim, estvarname = "b", true = 0.5, se = "se", methodvar = "method", 
         mcse = TRUE) at testthat/test-get_data.R:111
  2: checkmate::assert_subset(estvarname, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  ── 43. Error: heat checks arguments properly (@test-heat.R#7)  ─────────────────
  LOGICAL() can only be applied to a 'logical', not a 'NULL'
  1: simsum(data = relhaz, estvarname = "theta", true = -0.5, se = "se", methodvar = "model", 
         by = c("n", "baseline")) at testthat/test-heat.R:7
  2: checkmate::assert_subset(estvarname, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  ── 44. Error: heat returns a ggplot object (@test-heat.R#22)  ──────────────────
  LOGICAL() can only be applied to a 'logical', not a 'NULL'
  1: simsum(data = relhaz, estvarname = "theta", true = -0.5, se = "se", methodvar = "model", 
         by = c("n", "baseline")) at testthat/test-heat.R:22
  2: checkmate::assert_subset(estvarname, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  ── 45. Error: heat works when changing graphical parameters (@test-heat.R#30)  ─
  LOGICAL() can only be applied to a 'logical', not a 'NULL'
  1: simsum(data = relhaz, estvarname = "theta", true = -0.5, se = "se", methodvar = "model", 
         by = c("n", "baseline")) at testthat/test-heat.R:30
  2: checkmate::assert_subset(estvarname, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  ── 46. Error: heat works with text or not (@test-heat.R#52)  ───────────────────
  LOGICAL() can only be applied to a 'logical', not a 'NULL'
  1: simsum(data = relhaz, estvarname = "theta", true = -0.5, se = "se", methodvar = "model", 
         by = c("n", "baseline")) at testthat/test-heat.R:52
  2: checkmate::assert_subset(estvarname, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  ── 47. Error: heat works with different summary statistics (@test-heat.R#71)  ──
  LOGICAL() can only be applied to a 'logical', not a 'NULL'
  1: simsum(data = relhaz, estvarname = "theta", true = -0.5, se = "se", methodvar = "model", 
         by = c("n", "baseline")) at testthat/test-heat.R:71
  2: checkmate::assert_subset(estvarname, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  ── 48. Error: heat throws an error if asking for nsim without target (@test-heat
  LOGICAL() can only be applied to a 'logical', not a 'NULL'
  1: simsum(data = relhaz, estvarname = "theta", true = -0.5, se = "se", methodvar = "model", 
         by = c("n", "baseline")) at testthat/test-heat.R:106
  2: checkmate::assert_subset(estvarname, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  ── 49. Error: is.simsum works as expected (@test-is.multisimsum.R#5)  ──────────
  LOGICAL() can only be applied to a 'logical', not a 'unknown type #28'
  1: multisimsum(data = frailty, par = "par", true = c(trt = -0.5, fv = 0.75), estvarname = "b", 
         se = "se", methodvar = "model", by = "fv_dist") at testthat/test-is.multisimsum.R:5
  2: checkmate::assert_subset(x = par, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  ── 50. Error: is.simsum works as expected (@test-is.simsum.R#5)  ───────────────
  LOGICAL() can only be applied to a 'logical', not a 'unknown type #28'
  1: simsum(data = MIsim, estvarname = "b", true = 0.5, se = "se", methodvar = "method") at testthat/test-is.simsum.R:5
  2: checkmate::assert_subset(estvarname, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  ── 51. Error: lolly checks arguments properly (@test-lolly.R#6)  ───────────────
  LOGICAL() can only be applied to a 'logical', not a 'NULL'
  1: simsum(data = MIsim, estvarname = "b", true = 0.5, se = "se", methodvar = "method") at testthat/test-lolly.R:6
  2: checkmate::assert_subset(estvarname, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  ── 52. Error: lolly returns a ggplot object (@test-lolly.R#22)  ────────────────
  LOGICAL() can only be applied to a 'logical', not a 'NULL'
  1: simsum(data = MIsim, estvarname = "b", true = 0.5, se = "se", methodvar = "method") at testthat/test-lolly.R:22
  2: checkmate::assert_subset(estvarname, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  ── 53. Error: lolly does not plot CI when simsum in called with mcse = FALSE (@t
  LOGICAL() can only be applied to a 'logical', not a 'NULL'
  1: simsum(data = MIsim, estvarname = "b", true = 0.5, se = "se", methodvar = "method", 
         mcse = FALSE) at testthat/test-lolly.R:31
  2: checkmate::assert_subset(estvarname, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  ── 54. Error: lolly works with 'by' factors (@test-lolly.R#40)  ────────────────
  LOGICAL() can only be applied to a 'logical', not a 'NULL'
  1: simsum(data = relhaz, estvarname = "theta", true = -0.5, se = "se", methodvar = "model", 
         by = c("n", "baseline")) at testthat/test-lolly.R:40
  2: checkmate::assert_subset(estvarname, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  ── 55. Error: lolly works when changing graphical parameters (@test-lolly.R#53) 
  LOGICAL() can only be applied to a 'logical', not a 'NULL'
  1: simsum(data = MIsim, estvarname = "b", true = 0.5, se = "se", methodvar = "method") at testthat/test-lolly.R:53
  2: checkmate::assert_subset(estvarname, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  ── 56. Error: lolly with all 'sstat' options, with and without 'target' (@test-l
  LOGICAL() can only be applied to a 'logical', not a 'NULL'
  1: simsum(data = MIsim, estvarname = "b", true = 0.5, se = "se", methodvar = "method") at testthat/test-lolly.R:72
  2: checkmate::assert_subset(estvarname, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  ── 57. Error: lolly works for multisimsum object even without specifying par (@t
  LOGICAL() can only be applied to a 'logical', not a 'NULL'
  1: multisimsum(data = frailty, par = "par", true = c(trt = -0.5, fv = 0.75), estvarname = "b", 
         se = "se", methodvar = "model", by = "fv_dist") at testthat/test-lolly.R:133
  2: checkmate::assert_subset(x = par, choices = names(data), add = arg_checks)
  3: checkSubset(x, choices, empty.ok, fmatch)
  4: qassert(empty.ok, "B1")
  
  
   *** caught segfault ***
  address 84a4a9a, cause 'memory not mapped'
  
  Traceback:
   1: qassert(empty.ok, "B1")
   2: checkSubset(x, choices, empty.ok, fmatch)
   3: checkmate::assert_subset(estvarname, choices = names(data), add = arg_checks)
   4: miss(data = frailty, estvarname = "b", se = "se", par = "par",     methodvar = "model", by = "fv_dist")
   5: eval(code, test_env)
   6: eval(code, test_env)
   7: withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error)
   8: doTryCatch(return(expr), name, parentenv, handler)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  11: doTryCatch(return(expr), name, parentenv, handler)
  12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  13: tryCatchList(expr, classes, parentenv, handlers)
  14: tryCatch(withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error), error = handle_fatal,     skip = function(e) {    })
  15: test_code(desc, code, env = parent.frame())
  16: test_that("miss and print.miss fail with incorrect arguments",     {        data("frailty", package = "rsimsum")        expect_error(miss(data = frailty))        expect_error(miss(estvarname = "b"))        expect_error(miss(se = "se"))        expect_error(miss(data = frailty, estvarname = "b", se = "wrongname"))        m <- miss(data = frailty, estvarname = "b", se = "se",             par = "par", methodvar = "model", by = "fv_dist")        expect_error(print(m, fmt = 1))    })
  17: eval(code, test_env)
  18: eval(code, test_env)
  19: withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error)
  20: doTryCatch(return(expr), name, parentenv, handler)
  21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  23: doTryCatch(return(expr), name, parentenv, handler)
  24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  25: tryCatchList(expr, classes, parentenv, handlers)
  26: tryCatch(withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error), error = handle_fatal,     skip = function(e) {    })
  27: test_code(NULL, exprs, env)
  28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
  29: force(code)
  30: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,     {        lister$start_file(basename(path))        source_file(path, new.env(parent = env), chdir = TRUE,             wrap = wrap)        end_context()    })
  31: FUN(X[[i]], ...)
  32: lapply(paths, test_file, env = env, reporter = current_reporter,     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
  33: force(code)
  34: with_reporter(reporter = current_reporter, results <- lapply(paths,     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,     load_helpers = FALSE, wrap = wrap))
  35: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  36: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,     wrap = wrap)
  37: test_package_dir(package = package, test_path = test_path, filter = filter,     reporter = reporter, ..., stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  38: test_check("rsimsum")
  An irrecoverable exception occurred. R is aborting now ...