Running ‘testthat.R’ [82s/86s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > ### to also run skip_on_cran() tests, uncomment:
  > Sys.setenv(NOT_CRAN="true")
  > 
  > library(testthat)
  > library(getmstatistic)
  Welcome to getmstatistic 
   see https://magosil86.github.io/getmstatistic/ for examples and documentation
  > 
  > test_check("getmstatistic")
  
  ── 1. Error: correct systematic outlier studies are identified for M analysis of
  VECTOR_ELT() can only be applied to a 'list', not a 'double'
  1: getmstatistic(heartgenes214$beta_flipped, heartgenes214$gcse, heartgenes214$variants, 
         heartgenes214$studies) at testthat/test_m_analysis_example_using_all_214_lead_variants_in_heartgenes214.R:29
  2: getmstatistic.default(heartgenes214$beta_flipped, heartgenes214$gcse, heartgenes214$variants, 
         heartgenes214$studies)
  3: compute_m_statistics(beta_in, lambda_se_in, study_names_in, variant_names_in, tau2_method, 
         x_axis_increment_in, x_axis_round_in, verbose_output)
  4: base::print(hi + ggplot2::geom_hline(ggplot2::aes(yintercept = c(0, 0)), data = dat_hlines, 
         colour = "grey80", linetype = "solid", lwd = 0.4))
  5: print.ggplot(hi + ggplot2::geom_hline(ggplot2::aes(yintercept = c(0, 0)), data = dat_hlines, 
         colour = "grey80", linetype = "solid", lwd = 0.4))
  6: ggplot_gtable(data)
  7: ggplot_gtable.ggplot_built(data)
  8: build_guides(plot$scales, plot$layers, plot$mapping, position, theme, plot$guides, 
         plot$labels)
  9: guides_gengrob(gdefs, theme)
  10: lapply(gdefs, guide_gengrob, theme)
  ...
  19: pushvpgp(x)
  20: pushgrobvp(x$vp)
  21: pushgrobvp.viewport(x$vp)
  22: pushViewport(vp, recording = FALSE)
  23: lapply(vps, push.vp, recording)
  24: FUN(X[[i]], ...)
  25: push.vp.vpTree(X[[i]], ...)
  26: push.vp(vp$parent, recording)
  27: push.vp.viewport(vp$parent, recording)
  28: grid.Call.graphics(C_setviewport, vp, TRUE)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 0 SKIPPED: 0 FAILED: 1
  1. Error: correct systematic outlier studies are identified for M analysis of 214 lead variants. (@test_m_analysis_example_using_all_214_lead_variants_in_heartgenes214.R#29) 
  
  Error: testthat unit tests failed
  Execution halted