Skip to content

Commit 151e838

Browse files
author
Ryan Patrick Kyle
committed
✨ add options for dev_tools_ui and dev_tools_props_check
1 parent 53b70dd commit 151e838

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

R/dash.R

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,9 +474,24 @@ Dash <- R6::R6Class(
474474
showcase = FALSE,
475475
pruned_errors = TRUE,
476476
debug = FALSE,
477+
dev_tools_ui = NULL,
478+
dev_tools_props_check = NULL,
477479
...) {
478480
self$server$host <- host
479481
self$server$port <- as.numeric(port)
482+
483+
if (debug & !(isFALSE(dev_tools_ui)) | isTRUE(dev_tools_ui)) {
484+
self$config$ui <- TRUE
485+
} else {
486+
self$config$ui <- FALSE
487+
}
488+
489+
if (debug & !(isFALSE(dev_tools_props_check)) | isTRUE(dev_tools_props_check)) {
490+
self$config$props_check <- TRUE
491+
} else {
492+
self$config$props_check <- FALSE
493+
}
494+
480495
private$pruned_errors <- pruned_errors
481496
private$debug <- debug
482497

0 commit comments

Comments
 (0)