idRef | R Documentation |
Create a reference to one or more justifier objects
idRef(x, what = NULL, silent = justifier::opts$get("silent")) ## S3 method for class 'singleJustifierElement' idRef(x, what = NULL, silent = justifier::opts$get("silent")) ## S3 method for class 'multipleJustifierElements' idRef(x, what = NULL, silent = justifier::opts$get("silent")) ## S3 method for class 'justifierIdRef' idRef(x, what = NULL, silent = justifier::opts$get("silent")) ## S3 method for class 'character' idRef(x, what = NULL, silent = justifier::opts$get("silent")) ## S3 method for class 'justifierStructured' idRef(x, what = NULL, silent = justifier::opts$get("silent"))
x |
The identifier(s) |
what |
Optionally, what |
silent |
Whether to be silent or chatty. |
The justifier id reference object.
exampleSource <- justifier::source("This is a book about R."); exampleAssertion <- justifier::assert( "R is a functional language", source = justifier::idRef(exampleSource) ); ### Get and show the reference (sourceId <- exampleAssertion$source); sourceId <- as.character(sourceId); ### Manually assign an identifier justifier::idRef(sourceId); ### Repeat while specifying what we're passing justifier::idRef(sourceId, what="source");
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.