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
)
(Logical scalar)
Whether the display element for the primary test content
(corresponding to the ui
slot of psychTestR pages)
should be expanded to fill the whole screen.
This is a convenience argument that works by overriding
the following arguments:
content_border
(set to "0px"
)
show_header
(set to FALSE
)
show_footer
(set to FALSE
)
left_margin
(set to 0L
)
right_margin
(set to 0L
)
Note that this will hide the admin panel.
See show_footer
for further information.
(Character scalar) Background colour for the display element for the primary test content; interpreted as a CSS expression.
(Character scalar) Border format parameters for the display element for the primary test content; interpreted as a CSS expression.
(Logical scalar) Whether the header should be shown (typically contains the title and optionally a logo).
(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 show_admin_panel()
.
To hide it again, log out and then enter hide_admin_panel()
.
(Integerish scalar) Width of the left margin, with 0 corresponding to no margin and 12 corresponding to the full screen width.
(Integerish scalar) Width of the right margin, with 0 corresponding to no margin and 12 corresponding to the full screen width.
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
(Logical scalar)
Whether to display a link for logging in to the admin panel
(defaults to TRUE
).
Note that this admin panel will by default be invisible if show_footer = FALSE
,
but this can be changed by calling the Javascript function show_admin_panel()
.
A list for passing to the display
argument of test_options
.