Skip to contents

Execute code entered in the ShinyAce editor

Usage

execute_settings_code(
  input,
  output,
  session,
  id = character(),
  ns = character(),
  i18n = character(),
  r = shiny::reactiveValues(),
  d = shiny::reactiveValues(),
  m = shiny::reactiveValues(),
  edited_code = character(),
  code_type = "",
  data = list()
)

Arguments

input

Input Shiny variable

output

Output Shiny variable

session

Session Shiny variable

id

ID of the current page / module

ns

Shiny namespace

i18n

Translator object from shiny.i18n library

r

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

d

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

m

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

edited_code

New code, after editing it (character)

code_type

For plugins page, code_type could be UI or server (character)

data

A list containing dataframes / tibbles, if data need to be used in the evaluated code (list)

Examples

if (FALSE) {
 execute_settings_code(output = output, r = r, edited_code = "print('test')")
}