Skip to content

Commit

Permalink
remove the hack for learnr: rstudio/learnr#781
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Aug 25, 2023
1 parent 8ce8259 commit 6decdfa
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 @@ -311,8 +311,7 @@ process_file = function(text, output) {
res[i] = withCallingHandlers(
withCallingHandlers(
if (tangle) process_tangle(group) else process_group(group),
# TODO: remove the learnr hack https://github.com/rstudio/learnr/pull/781
error = function(e) if (xfun::pkg_available('rlang', '1.0.0') && !xfun::check_old_package('learnr', '0.11.3')) rlang::entrace(e)
error = function(e) if (xfun::pkg_available('rlang', '1.0.0')) rlang::entrace(e)
),
error = function(e) {
setwd(wd)
Expand Down

0 comments on commit 6decdfa

Please sign in to comment.