generate_construct_overview | R Documentation |
These functions use a DCT specification to generate a construct overview or an instruction overview.
generate_construct_overview( dctSpec, include = c("definition", "measure_dev", "measure_code", "manipulate_dev", "manipulate_code", "aspect_dev", "aspect_code", "rel"), hideByDefault = NULL, divClass = "btn btn-secondary", headingLevel = 3, collapseButtons = TRUE, hyperlink_UCIDs = TRUE, HTMLoutput = FALSE, urlPrefix = "#", sortDecreasing = FALSE ) generate_definitions_overview( dctSpecDf, headingLevel = 3, hyperlink_UCIDs = "Markdown", urlPrefix = "#", sortDecreasing = FALSE ) generate_instruction_overview( dctSpecDf, type, headingLevel = 3, hyperlink_UCIDs = "Markdown", urlPrefix = "#", sortDecreasing = FALSE )
dctSpec |
The DCT specification, as resulting from a call
to |
include |
Which elements to include in the construct overview. |
hideByDefault |
Which elements to hide by default. |
divClass |
The class of the button to collapse/expand sections. |
headingLevel |
The level of the heading in the Markdown output that is produces. |
collapseButtons |
Whether to include buttons to show/hide the definition and instructions. |
hyperlink_UCIDs |
Whether to create hyperlinks to UCIDs. |
HTMLoutput |
Whether to output to Markdown ( |
urlPrefix |
The prefix to insert before the URL in the produced
hyperlink. The default, " |
sortDecreasing |
Whether to sort the constructs in decreasing order
( |
dctSpecDf |
The DCT specification dataframer, as produced
by a call to |
type |
For instruction overviews, the type of instruction
to generate can be specified: must be one of " |
A character string with the overview.
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" ); generate_construct_overview(exampleDCT);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.