Skip to contents

Save code in code table after editing it

Usage

save_settings_code(
  output,
  r = shiny::reactiveValues(),
  id = character(),
  category = character(),
  code_id_input = integer(),
  edited_code = character(),
  i18n = character()
)

Arguments

output

Shiny output variable

r

Shiny reactive value, used to communicate between modules (reactiveValue)

id

ID of the current page, format = "settings_[PAGE]" (character)

category

Category column in code table, eg : "dataset", "plugin" (character)

code_id_input

Input of the actionButton containing ID of current row, in datatable, format = "edit_code_[ID]" (character)

edited_code

New code, after editing it (character)

i18n

Translator object from shiny.i18n library

Examples

if (FALSE) {
save_settings_code(output = output, r = r, id = "settings_dataset", category = "dataset", code_id_input = "edit_code_5",
  edited_code = "print('test code edition')", i18n = i18n)
}