Running examples in 'getmstatistic-Ex.R' failed
The error most likely occurred in:

> ### Name: getmstatistic
> ### Title: Quantifying Systematic Heterogeneity in Meta-Analysis.
> ### Aliases: getmstatistic getm getmstat Rgetmstatistic
> ###   getmstatistic.default
> 
> ### ** Examples
> 
> library(getmstatistic)
> library(gridExtra)
> 
> 
> # Basic M analysis using the heartgenes214 dataset.
> # heartgenes214 is a multi-ethnic GWAS meta-analysis dataset for coronary artery disease.
> # To learn more about the heartgenes214 dataset ?heartgenes214
> 
> # Running an M analysis on 20 GWAS significant variants (p < 5e-08) in the first 10 studies
> 
> heartgenes44_10studies <- subset(heartgenes214, studies <= 10 & fdr214_gwas46 == 2) 
> heartgenes20_10studies <- subset(heartgenes44_10studies, 
+     variants %in% unique(heartgenes44_10studies$variants)[1:20])
> 
> # Set directory to store plots, this can be a temporary directory
> # or a path to a directory of choice e.g. plots_dir <- "~/Downloads"
> plots_dir <- tempdir()
> 
> getmstatistic_results <- getmstatistic(heartgenes20_10studies$beta_flipped, 
+                                         heartgenes20_10studies$gcse, 
+                                         heartgenes20_10studies$variants, 
+                                         heartgenes20_10studies$studies,
+                                         save_dir = plots_dir)

Warning in grDevices::dev.off() :
  processing of the plot ran out of memory

[1] "Table not generated as there were no influential \nstudies found at alpha = 0.05"


[1] "Latex table not generated as there were no influential studies found at alpha = 0.05"
Warning in grDevices::tiff(file.path(save_dir, filename_underperforming_studies),  :
  unable to allocate bitmap
Warning in grDevices::tiff(file.path(save_dir, filename_underperforming_studies),  :
  opening device failed
Error in grDevices::tiff(file.path(save_dir, filename_underperforming_studies),  : 
  unable to start tiff() device
Calls: getmstatistic ... getmstatistic.default -> compute_m_statistics -> <Anonymous>
Execution halted