Skip to content

Commit

Permalink
Revert "Adapt to another change of next evaluate"
Browse files Browse the repository at this point in the history
This reverts commit f4d670f. evaluate
will handle this directly.
  • Loading branch information
cderv committed Jun 20, 2024
1 parent f4d670f commit 4a02625
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions R/output.R
Original file line number Diff line number Diff line change
Expand Up @@ -554,8 +554,7 @@ msg_sanitize = function(message, type) {
sew.warning = function(x, options, ...) {
call = if (is.null(x$call)) '' else {
call = deparse(x$call)[1]
# TODO: evaluate > 0.24.0 do not set `enclos` anymore. So when updating requirement we can remove the double check
if (call %in% c('eval(expr, envir, enclos)', 'eval(expr, envir)')) '' else paste(' in', call)
if (call == 'eval(expr, envir, enclos)') '' else paste(' in', call)
}
msg_wrap(sprintf('Warning%s: %s', call, conditionMessage(x)), 'warning', options)
}
Expand Down

0 comments on commit 4a02625

Please sign in to comment.