display_options | R Documentation |
Creates a list of display options that may be passed to
test_options
.
display_options(
full_screen = FALSE,
content_background_colour = "white",
content_border = "1px solid #e8e8e8",
show_header = TRUE,
show_footer = TRUE,
left_margin = 2L,
right_margin = 2L,
css = character(),
admin_panel = TRUE
)
full_screen |
(Logical scalar)
Whether the display element for the primary test content
(corresponding to the
Note that this will hide the admin panel.
See |
content_background_colour |
(Character scalar) Background colour for the display element for the primary test content; interpreted as a CSS expression. |
content_border |
(Character scalar) Border format parameters for the display element for the primary test content; interpreted as a CSS expression. |
show_header |
(Logical scalar) Whether the header should be shown (typically contains the title and optionally a logo). |
show_footer |
(Logical scalar)
Whether the footer should be shown (typically contains a link to the
admin panel).
To show the admin panel manually, enter the Javascript console
once the app is running
(you'll need to be using a proper web browser, rather than RStudio)
and enter the command |
left_margin |
(Integerish scalar) Width of the left margin, with 0 corresponding to no margin and 12 corresponding to the full screen width. |
right_margin |
(Integerish scalar) Width of the right margin, with 0 corresponding to no margin and 12 corresponding to the full screen width. |
css |
Character vector of file paths to CSS files for inclusion within the psychTestR test. CSS files are used for styling HTML. These file paths should be expressed relative to R's working directory |
admin_panel |
(Logical scalar)
Whether to display a link for logging in to the admin panel
(defaults to |
A list for passing to the display
argument of test_options
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.