Skip to content

Commit

Permalink
Simplify code thus revealed
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley committed Jun 19, 2024
1 parent d571425 commit 294f463
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions R/eval.R
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,10 @@ evaluate_top_level_expression <- function(exprs,
attr(output[[srcindex]]$src, 'timing') <- time

if (show_value(output_handler, ev$visible)) {
pv <- list(value = NULL, visible = FALSE)
handle(pv <- withCallingHandlers(withVisible(
handle_value(output_handler, ev$value, ev$visible)
), warning = wHandler, error = eHandler, message = mHandler))
handle(withCallingHandlers(
handle_value(output_handler, ev$value, ev$visible),
warning = wHandler, error = eHandler, message = mHandler)
)
handle_output(TRUE)
}
}
Expand Down

0 comments on commit 294f463

Please sign in to comment.