From 76e091d0ae6754685da2d615495335faa407b50e Mon Sep 17 00:00:00 2001 From: Edzer Pebesma Date: Tue, 19 Feb 2019 10:19:53 +0100 Subject: [PATCH] try once more #183 --- R/make_units.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/make_units.R b/R/make_units.R index 006650f0..38f0857e 100644 --- a/R/make_units.R +++ b/R/make_units.R @@ -341,8 +341,8 @@ as_units.call <- function(x, check_is_valid = TRUE, ...) { stopifnot(is.language(x)) - vars <- enc2utf8(vars) vars <- all.vars(x) + vars <- enc2utf8(vars) if(!length(vars)) stop(call. = FALSE, "No symbols found. Please supply bare expressions with this approach.