From df315af8e2a2b48b965a979ba4c80fade3247f62 Mon Sep 17 00:00:00 2001 From: Teun van den Brand <49372158+teunbrand@users.noreply.github.com> Date: Tue, 28 Jan 2025 14:20:08 +0100 Subject: [PATCH] protect if-clause (#6302) --- R/geom-ribbon.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/geom-ribbon.R b/R/geom-ribbon.R index 4365c122d5..746684afbe 100644 --- a/R/geom-ribbon.R +++ b/R/geom-ribbon.R @@ -132,7 +132,7 @@ GeomRibbon <- ggproto("GeomRibbon", Geom, strsplit(self$required_aes, "|", fixed = TRUE), `[[`, i = 1, character(1) ) - if (params$flipped_aes || any(data$flipped_aes) %||% FALSE) { + if (isTRUE(params$flipped_aes || any(data$flipped_aes) %||% FALSE)) { vars <- switch_orientation(vars) } vars <- c(vars, self$non_missing_aes)