diff --git a/r/R/dplyr.R b/r/R/dplyr.R index 2745f69d90c..0c985f5fe89 100644 --- a/r/R/dplyr.R +++ b/r/R/dplyr.R @@ -285,8 +285,8 @@ i18ize_error_messages <- function() { # Figure out what the error messages will be with this LANGUAGE # so that we can look for them out <- list( - obj = tryCatch(X_____X, error = function(e) conditionMessage(e)), - fun = tryCatch(X_____X(), error = function(e) conditionMessage(e)) + obj = tryCatch(eval(parse(text = "X_____X")), error = function(e) conditionMessage(e)), + fun = tryCatch(eval(parse(text = "X_____X()")), error = function(e) conditionMessage(e)) ) paste(map(out, ~sub("X_____X", ".*", .)), collapse = "|") }