View source: R/dct_object_to_html.R
dct_object_to_html | R Documentation |
Create an HTML fragment showing a DCT object
dct_object_to_html( dctObject, headingLevel = 3, hyperlink_UCIDs = TRUE, collapseButtons = TRUE, urlPrefix = "#", sortDecreasing = FALSE )
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
( |
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" ); ### Only run this in an interactive R session, ### as it shows the HTML in the viewer. if (interactive()) { dct_object_to_html(exampleDCT); }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.