Create an HTML fragment showing a DCT object
dct_object_to_html(
dctObject,
headingLevel = 3,
hyperlink_UCIDs = TRUE,
collapseButtons = TRUE,
urlPrefix = "#",
sortDecreasing = FALSE
)
The DCT object
The level of the heading in the Markdown output that is produces.
Whether to create hyperlinks to UCIDs.
Whether to include buttons to show/hide the definition and instructions.
The prefix to insert before the URL in the produced
hyperlink. The default, "#
", results in a link to an
anchor (an HTML a
element) on the current page.
Whether to sort the constructs in decreasing order
(TRUE
), in increasing order (FALSE
), or not at all (NULL
).
A character vector.
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"
);
dct_object_to_html(exampleDCT);
#> Error in dct_object_to_html(exampleDCT): could not find function "dct_object_to_html"