Skip to content

Commit

Permalink
Export app_fn, server_fn, and ui_fn.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-g committed Sep 4, 2024
1 parent 2cf6f11 commit ce6b640
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Generated by roxygen2: do not edit by hand

export(app_fn)
export(classify_vars)
export(count_unique)
export(extract_last_tick)
Expand All @@ -17,8 +18,10 @@ export(load_bs_table)
export(make_experiment)
export(make_plot)
export(process_bs_data)
export(server_fn)
export(tx_col)
export(tx_name)
export(ui_fn)
import(dplyr)
import(ggplot2)
import(janitor)
Expand Down
3 changes: 3 additions & 0 deletions R/app.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
#' @return A [`shinyApp`][shiny::shinyApp] object.
#' @examples
#' # ADD_EXAMPLES_HERE
#'
#' @export
#'
app_fn <- function(...) {
shiny_file_size <- getOption("analyzeBehaviorspace.maxFileSize", default = 300)
options(shiny.maxRequestSize = shiny_file_size * 1024^2)
Expand Down
2 changes: 2 additions & 0 deletions R/server.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ make_named_list <- function(x, as_list = TRUE) {
#' shinyApp(ui, server)
#' }
#'
#' @export
#'
server_fn <- function() {
shiny::shinyServer(function(input, output, session) {

Expand Down
2 changes: 2 additions & 0 deletions R/ui.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
#' shinyApp(ui, server)
#' }
#'
#' @export
#'
ui_fn <- function() {
shiny::shinyUI(
shiny::fluidPage(
Expand Down
1 change: 1 addition & 0 deletions man/app_fn.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ce6b640

Please sign in to comment.