Run a shiny application asking for parameter configuration for the given document.

knit_params_ask(
  file = NULL,
  input_lines = NULL,
  params = NULL,
  shiny_args = NULL,
  save_caption = "Save",
  encoding = "UTF-8"
)

Arguments

file

Path to the R Markdown document with configurable parameters.

input_lines

Content of the R Markdown document. If NULL, the contents of file will be read.

params

A named list of optional parameter overrides used in place of the document defaults.

shiny_args

Additional arguments to runApp.

save_caption

Caption to use use for button that saves/confirms parameters.

encoding

Ignored. The encoding is always assumed to be UTF-8.

Value

named list with overridden parameter names and value.