sn_run_app: Run the Shiny Application

View source: R/sn_run_app.R

sn_run_appR Documentation

Run the Shiny Application

Description

Run the Shiny Application

Usage

sn_run_app(
  lau_by_nuts = sn_lau_by_nuts,
  app_title = "Mapping Diversity - European Data Journalism Network (EDJNet)",
  country_name = NULL,
  enable_tag = TRUE,
  category_choices = c("politics", "culture", "religion", "military", "other"),
  lau_year = 2020,
  connection = NULL,
  sn_data_folder = NULL,
  user_base = NULL,
  custom_head_html = "",
  onStart = NULL,
  options = list(),
  enableBookmarking = NULL,
  uiPattern = "/",
  ...
)

Arguments

lau_by_nuts

A list of municipalities passed to the app. Defaults to 'sn_lau_by_nuts'. If given, typically a filtered version of 'sn_lau_by_nuts', or a data frame with the same columns.

country_name

Full name of country to be used as default. Full country name. See 'unique(sn_lau_by_nuts$country_name)' for valid values.

connection

A database connection or connection parameters compatible with 'tidywikidatar' to be use by both 'tidywikidatar' and 'streetnamer'. Necessary for deployed apps, as environment parameters are stripped by Shiny server.

user_base

A data frame with users and passwords in the format used by the package 'shinyauthr'.

onStart

A function that will be called before the app is actually run. This is only needed for shinyAppObj, since in the shinyAppDir case, a global.R file can be used for this purpose.

options

Named options that should be passed to the runApp call (these can be any of the following: "port", "launch.browser", "host", "quiet", "display.mode" and "test.mode"). You can also specify width and height parameters which provide a hint to the embedding environment about the ideal height/width for the app.

enableBookmarking

Can be one of "url", "server", or "disable". The default value, NULL, will respect the setting from any previous calls to enableBookmarking(). See enableBookmarking() for more information on bookmarking your app.

uiPattern

A regular expression that will be applied to each GET request to determine whether the ui should be used to handle the request. Note that the entire request path must match the regular expression in order for the match to be considered successful.

...

arguments to pass to golem_opts. See '?golem::get_golem_options' for more details.


giocomai/streetnamer documentation built on Oct. 14, 2023, 6:27 p.m.