From 9bdfa3caa898e3aa76f01a33549086fc2a0f01a4 Mon Sep 17 00:00:00 2001 From: ben-laufer Date: Thu, 13 May 2021 09:52:55 -0700 Subject: [PATCH] Change notification about out of date dmrseq to a warning instead of an error. --- R/DM.R | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/R/DM.R b/R/DM.R index 4961c41..613e7b3 100644 --- a/R/DM.R +++ b/R/DM.R @@ -72,12 +72,14 @@ DM.R <- function(genome = c("hg38", "hg19", "mm10", "mm9", "rheMac10", cellComposition = FALSE){ - # Check dmrseq version (https://github.com/kdkorthauer/dmrseq/issues/37) + # Check dmrseq version if(Biobase::package.version("dmrseq") %>% stringr::str_remove("1.") %>% as.numeric() < 7.3){ - stop(paste("Your version of dmrseq is too out of date and contains a bug.", - "See the install section of the DMRichR README for the code to manually update.")) + warning(paste("Your version of dmrseq is out of date and contains a bug.", + "This bug won't affect the DMRichR run but could affect your custom follow up analyses.", + "See the install section of the DMRichR README for the code to manually update.", + "Read more about the issue: https://github.com/kdkorthauer/dmrseq/issues/37")) } # Set options