page | R Documentation |
This is the most general way to create a psychTestR page.
page(
ui,
admin_ui = NULL,
label = NULL,
final = FALSE,
get_answer = NULL,
save_answer = FALSE,
validate = NULL,
on_complete = NULL,
next_elt = TRUE
)
ui |
Page UI. Can be either a character scalar (e.g.
"Welcome to the test!") or an object of class "shiny.tag",
e.g. |
admin_ui |
Optional UI component for the admin panel. |
label |
Page label (character scalar). |
final |
Whether or not the page is the final page in the test. |
get_answer |
Optional function for extracting the participant's
answer from the current page.
The argument list should include |
save_answer |
Whether or not to save the answer. |
validate |
Optional validation function.
The argument list should include |
on_complete |
Optional function to execute on leaving the page
(after successful validation).
The argument list should include |
next_elt |
(Logical scalar) Whether to go to the next element
in the timeline once this page is completed.
This will typically be |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.