Skip to content

Commit

Permalink
Merge pull request #24 from noclocks/bugfix/missing-imports-args
Browse files Browse the repository at this point in the history
[bugfix]: Missing imports & incorrect arg
  • Loading branch information
jimbrig authored Sep 11, 2024
2 parents 47e7948 + f7a9daa commit 144fdf2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 2 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ importFrom(bs4Dash,controlbarItem)
importFrom(bs4Dash,controlbarMenu)
importFrom(bs4Dash,menuItem)
importFrom(bs4Dash,sidebarMenu)
importFrom(cachem,cache_disk)
importFrom(cachem,cache_mem)
importFrom(cli,cli_abort)
importFrom(cli,cli_alert_info)
Expand Down Expand Up @@ -176,6 +177,7 @@ importFrom(shiny,renderText)
importFrom(shiny,req)
importFrom(shiny,runApp)
importFrom(shiny,shinyApp)
importFrom(shiny,shinyOptions)
importFrom(shiny,showModal)
importFrom(shiny,sliderInput)
importFrom(shiny,tagList)
Expand Down
2 changes: 1 addition & 1 deletion R/app_inputs.R
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ picker <- function(
choice_options = NULL,
...) {
shinyWidgets::pickerInput(
id = id,
inputId = id,
label = label,
choices = choices,
selected = selected,
Expand Down
9 changes: 5 additions & 4 deletions R/app_run.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,17 @@
#'
#' @export
#'
#' @importFrom shiny runApp
#' @importFrom cachem cache_disk cache_mem
#' @importFrom shiny runApp shinyOptions
run_app <- function(
onStart = NULL,
options = list(),
enableBookmarking = NULL,
uiPattern = "/",
...) {
shinyOptions(cache = cachem::cache_mem(max_size = 500e6))
# shinyOptions(cache = cachem::cache_disk(file.path(dirname(tempdir()), "gmhleasr"))
shinyOptions(cache = cachem::cache_disk("./app_cache"))
shiny::shinyOptions(cache = cachem::cache_mem(max_size = 500e6))
# shiny::shinyOptions(cache = cachem::cache_disk(file.path(dirname(tempdir()), "gmhleasr"))
shiny::shinyOptions(cache = cachem::cache_disk("./app_cache"))

run_with_opts(
app = shiny::shinyApp(
Expand Down

0 comments on commit 144fdf2

Please sign in to comment.