Skip to content

Commit

Permalink
Use rlang backtrace for errors
Browse files Browse the repository at this point in the history
  • Loading branch information
afwillia committed Feb 20, 2024
1 parent 94f1d21 commit bb54db5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions global.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ message(sprintf("Available cores: %s", ncores))
plan(multicore, workers = ncores)

options(shiny.maxRequestSize=32*1024^2)
options(
rlang_backtrace_on_error = "branch",
error = rlang::entrace
)

# import R files
source_files <- list.files(c("functions", "modules"), pattern = "*\\.R$", recursive = TRUE, full.names = TRUE)
Expand Down

0 comments on commit bb54db5

Please sign in to comment.