Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Imports:
rlang,
scales,
sf,
shiny (>= 1.7.1),
shiny (>= 1.14.0),
shinycssloaders,
shinyjs,
shinyWidgets,
Expand All @@ -67,9 +67,8 @@ Suggests:
spelling,
testthat (>= 3.0.0),
usethis,
watchr (>= 0.0.0.9000)
watcher
Remotes:
github::tomjemmett/watchr,
github::the-strategy-unit/azkit
Comment thread
tomjemmett marked this conversation as resolved.
Config/testthat/edition: 3
Encoding: UTF-8
Expand Down
2 changes: 1 addition & 1 deletion R/mod_home_ui.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ mod_home_ui <- function(id) {
collapsible = FALSE,
width = 12,
shinycssloaders::withSpinner(
gt::gt_output(ns("model_options"))
shiny::htmlOutput(ns("model_options"))
)
)
)
Expand Down
2 changes: 1 addition & 1 deletion R/mod_mitigators_summary_ui.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ mod_mitigators_summary_ui <- function(id) {
bs4Dash::box(
width = 12,
shinycssloaders::withSpinner(
gt::gt_output(ns("diagnoses_table"))
shiny::htmlOutput(ns("diagnoses_table"))
)
)
Comment thread
tomjemmett marked this conversation as resolved.
)
Expand Down
4 changes: 2 additions & 2 deletions R/mod_mitigators_ui.R
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ mod_mitigators_ui <- function(id, title, show_diagnoses_table = TRUE) {
title = "Top 6 Primary Diagnoses",
if (show_diagnoses_table) {
shinycssloaders::withSpinner({
gt::gt_output(ns("diagnoses_table"))
shiny::htmlOutput(ns("diagnoses_table"))
})
Comment thread
tomjemmett marked this conversation as resolved.
} else {
shiny::p("No diagnosis data for outpatients.")
Expand All @@ -86,7 +86,7 @@ mod_mitigators_ui <- function(id, title, show_diagnoses_table = TRUE) {
bs4Dash::box(
title = "Breakdown by Procedure",
shinycssloaders::withSpinner({
gt::gt_output(ns("procedures_table"))
shiny::htmlOutput(ns("procedures_table"))
}),
Comment thread
tomjemmett marked this conversation as resolved.
width = 12
)
Expand Down
2 changes: 1 addition & 1 deletion R/mod_non_demographic_adjustment_ui.R
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ mod_non_demographic_adjustment_ui <- function(id) {
collapsible = FALSE,
headerBorder = FALSE,
width = 4,
gt::gt_output(ns("non_demographic_adjustment_table"))
shiny::htmlOutput(ns("non_demographic_adjustment_table"))
)
)
)
Expand Down
2 changes: 1 addition & 1 deletion R/mod_run_model_ui.R
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ mod_run_model_ui <- function(id) {
width = 8,
collapsed = TRUE,
shiny::verbatimTextOutput(ns("params_json")),
gt::gt_output(ns("validation_errors"))
shiny::htmlOutput(ns("validation_errors"))
)
Comment thread
tomjemmett marked this conversation as resolved.
)
}
2 changes: 1 addition & 1 deletion R/mod_waiting_list_imbalances_ui.R
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ mod_waiting_list_imbalances_ui <- function(id) {
collapsible = FALSE,
headerBorder = FALSE,
width = 8,
gt::gt_output(ns("table"))
shiny::htmlOutput(ns("table"))
)
Comment thread
tomjemmett marked this conversation as resolved.
)
)
Expand Down
1 change: 0 additions & 1 deletion app.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# Or use the blue button on top of this file

pkgload::load_all(export_all = FALSE, helpers = FALSE, attach_testthat = FALSE)
options("golem.app.prod" = TRUE)

cat(
"listing environment variables:\n",
Expand Down
14 changes: 3 additions & 11 deletions dev/watch.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
shiny::devmode()

selection_app <- callr::r_bg(\() {
app <- shiny::runApp(
"inputs_selection_app",
Expand All @@ -8,14 +10,4 @@ selection_app <- callr::r_bg(\() {

cat("Inputs Selection App: http://127.0.0.1:9080\n")

watchr::watch_files_and_start_task(
\() {
try({
pkgload::load_all()
print(run_app())
})
},
\() fs::dir_ls(path = c("R"), recurse = TRUE, glob = "*.R"),
"inst/golem-config.yml",
"DESCRIPTION"
)
shiny::runApp()
Comment thread
tomjemmett marked this conversation as resolved.