View source: R/learnitdown_shiny.R
learnitdownShiny | R Documentation |
A learnitdown Shiny application is an application whose events (start, stop, inputs, outputs, errors, result, quit) are recorded. It also provides a 'Submit Answer' and a 'Quit' buttons that manage to check the answer provided by the user and to close the application cleanly.
learnitdownShiny(title, windowTitle = title)
learnitdownShinyVersion(version)
submitAnswerButton(
inputId = "learnitdown_submit_",
label = "Submit",
class = "btn-primary",
...
)
quitButton(
inputId = "learnitdown_quit_",
label = "Quit",
class = "btn-secondary",
...
)
submitQuitButtons()
title |
The title of the Shiny application |
windowTitle |
The title of the window that holds the Shiny application,
by default, it is the same as |
version |
The version number (in a string character format) of the Shiny application to use in the events logger. |
inputId |
The identifier of the button ("learnitdown_submit_" or "learnitdown_quit_"). |
label |
The button text ("Submit" or "Quit"). |
class |
The bootstrap class of the button. |
... |
Further arguments passed to |
The code to be inserted at the beginning of the Shiny application UI
for learnitdownShiny()
or where the buttons should be located for the other
function.
trackEvents()
, record_shiny()
learnitdownShiny("My title")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.