From fa963fecbdbcd23b5975090d6ebd6b313c9f66ba Mon Sep 17 00:00:00 2001 From: etiennebacher Date: Thu, 28 Jul 2022 13:42:21 +0200 Subject: [PATCH] replace str2lang(), which depends on R 3.6 --- R/arrange.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/arrange.R b/R/arrange.R index cc3d9eb..492fcf5 100644 --- a/R/arrange.R +++ b/R/arrange.R @@ -44,7 +44,7 @@ arrange_rows <- function(.data, dots) { tmp <- gsub("^desc\\(", "-", tmp) tmp <- gsub("\\)$", "", tmp) } - dots[[i]] <- str2lang(tmp) + dots[[i]] <- parse(text = tmp, keep.source = FALSE)[[1]] } # convert character colums used to arrange to factor columns, so that we can