Description Usage Arguments Value Examples
View source: R/export_justification.R
Export justification as YAML
1 2 3 4 5 6 7 8 |
x |
The justification, either loaded from one or more files or programmatically constructed. This can be one or more decisions, justifications, assertions, or sources. |
file |
If specified, the file to export the justification to. |
encoding |
The encoding to use when writing the file. |
append |
Whether to append to the file, or replace its contents. |
preventOverwriting |
Whether to prevent overwriting an existing file. |
silent |
Whether to be silent or chatty. |
The generated YAML, invisibly, unless file is NULL.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ### Programmatically create a simple justification object
justifierObject <-
justifier::asrt(
"assertion",
source = c(
justifier::srce('source1'),
justifier::srce('source2')));
### Export to YAML
justifierYAML <-
justifier::export_justification(
justifierObject,
file=NULL);
### Show YAML
cat(justifierYAML, sep="\n");
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.