dct_object_to_html {psyverse} | R Documentation |
Create an HTML fragment showing a DCT object
Description
Create an HTML fragment showing a DCT object
Usage
dct_object_to_html(
dctObject,
headingLevel = 3,
hyperlink_UCIDs = TRUE,
collapseButtons = TRUE,
urlPrefix = "#",
sortDecreasing = FALSE
)
Arguments
dctObject |
The DCT object |
headingLevel |
The level of the heading in the Markdown output that is produces. |
hyperlink_UCIDs |
Whether to create hyperlinks to UCIDs. |
collapseButtons |
Whether to include buttons to show/hide the definition and instructions. |
urlPrefix |
The prefix to insert before the URL in the produced
hyperlink. The default, " |
sortDecreasing |
Whether to sort the constructs in decreasing order
( |
Value
A character vector.
Examples
exampleDCT <-
psyverse::dct_object(
prefix = "exampleConstruct",
label = "An example construct",
definition = "The definition goes here",
measure_dev = "Here you can explain how to measure the construct"
);
### Only run this in an interactive R session,
### as it shows the HTML in the viewer.
if (interactive()) {
dct_object_to_html(exampleDCT);
}
[Package psyverse version 0.2.6 Index]