From b411fc103e3756b80f0396cf870456fa64ef57ef Mon Sep 17 00:00:00 2001 From: Chun-Hui Gao Date: Thu, 6 Jun 2024 19:47:39 +0800 Subject: [PATCH] Update MSn_processing.R To avoid `sub_dir` is not defined error, as you already abandon using `ggsave()` to save plots. --- R/MSn_processing.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/MSn_processing.R b/R/MSn_processing.R index 28668ee..0daeffc 100755 --- a/R/MSn_processing.R +++ b/R/MSn_processing.R @@ -1454,7 +1454,7 @@ PerformMirrorPlotting <- function(mSet = NULL, cutoff_relative = cutoff_relative) # Construct the plot file name - plot_filename <- paste0(sub_dir, "/", as.character(paste0(mz, "__", rt)), "_", j, ".png") + # plot_filename <- paste0(sub_dir, "/", as.character(paste0(mz, "__", rt)), "_", j, ".png") # Save the plot with Cairo # ggsave(plot_filename, plot = last_plot(), width = width, height = height, dpi = dpi)