Create the template of a new shinyscholar module.

create_module(
  id,
  dir,
  map = FALSE,
  result = FALSE,
  rmd = FALSE,
  save = FALSE,
  init = FALSE
)

Arguments

id

character. The id of the module.

dir

character. A directory where the new module should be created.

map

logical. Whether or not the module should support modifying the map.

result

logical. Whether or not the module should support showing information in the Result tab.

rmd

logical. Whether or not the module should add Rmd code to the Session Code download.

save

logical. Whether or not the module has some custom data to save when the user saves the current session.

init

logical. Whether or not the function is being used inside of the init function

See also