From c3eb1b5d4b9eb9030347a9b1af9a5d704b6f64dd Mon Sep 17 00:00:00 2001 From: atusy <30277794+atusy@users.noreply.github.com> Date: Tue, 15 Oct 2019 11:45:07 +0900 Subject: [PATCH] fix wrongly specified arguments to setdiff() --- R/plot-autoplot-qnt.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/plot-autoplot-qnt.R b/R/plot-autoplot-qnt.R index ae0e370..05c61d7 100644 --- a/R/plot-autoplot-qnt.R +++ b/R/plot-autoplot-qnt.R @@ -1,5 +1,5 @@ autoplot.qm_qnt <- function(object, x = 1, y = 2, ..., .filter = TRUE) { - nm <- setdiff(names(object), "x", "y") + nm <- setdiff(names(object), c("x", "y")) x <- tidyselect::vars_select(nm, !!enquo(x)) y <- tidyselect::vars_select(nm, !!enquo(y)) dplyr::bind_cols(