From 61271f96efa68d66c200b244efa66e320f9fc4aa Mon Sep 17 00:00:00 2001 From: Erik Clarke Date: Thu, 15 Dec 2022 14:41:55 -0800 Subject: [PATCH] fix for rare error caused by passing list(TRUE) to remove_missing(na.rm = ) in afex package --- R/position-quasirandom.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/position-quasirandom.R b/R/position-quasirandom.R index 56ecb9a..d3a7184 100644 --- a/R/position-quasirandom.R +++ b/R/position-quasirandom.R @@ -73,7 +73,7 @@ PositionQuasirandom <- ggplot2::ggproto("PositionQuasirandom", Position, }, compute_panel = function(data, params, scales) { - data <- ggplot2::remove_missing(data, na.rm = params$na.rm) + data <- ggplot2::remove_missing(data, na.rm = as.logical(params$na.rm)) data <- flip_data(data, params$flipped_aes) # perform dodging if necessary