From 41d956d33852282de7a22803da04083842b4edff Mon Sep 17 00:00:00 2001 From: kemihak Date: Wed, 16 Oct 2024 11:07:20 +0200 Subject: [PATCH] if synthesis is TRUE, mcYears value is useless --- R/readAntares.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/readAntares.R b/R/readAntares.R index 3ff6705a..03b57370 100644 --- a/R/readAntares.R +++ b/R/readAntares.R @@ -811,7 +811,7 @@ readAntaresAPI <- function(areas = NULL, # mcYear if (!is.null(mcYears)) { mcYears <- intersect(mcYears, opts[["mcYears"]]) - if (identical(sort(mcYears), sort(opts[["mcYears"]])) | length(mcYears) == 0) { + if (identical(sort(mcYears), sort(opts[["mcYears"]])) | length(mcYears) == 0 | synthesis) { mcYears <- "" } }