From 3986dc88ce2a3340fb5ba3b5ca70e8206b224047 Mon Sep 17 00:00:00 2001 From: aho Date: Thu, 23 Mar 2023 17:38:50 +0100 Subject: [PATCH] Improve if condition so R/4.2.3 doesn't return warning --- tools/check_recipe.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/check_recipe.R b/tools/check_recipe.R index 964c4446..1853a8be 100644 --- a/tools/check_recipe.R +++ b/tools/check_recipe.R @@ -120,7 +120,7 @@ check_recipe <- function(recipe) { } ## TODO: Is this needed? if (is.null(recipe$Analysis$Time$fcst_year) || - tolower(recipe$Analysis$Time$fcst_year) == 'none') { + identical(tolower(recipe$Analysis$Time$fcst_year), 'none')) { stream <- "hindcast" # recipe$Analysis$Time$fcst_year <- 'YYYY' } else { -- GitLab