### Programmatically create a justification with two assertions
### but without sources
justifierJustification <-
justifier::justify(
"Icecream will make me feel less fit",
assertion = c(
justifier::assert('Icecream is rich in energy'),
justifier::assert('Consuming high-energy foods makes me feel less fit')
),
weight = -.5
);
### Flatten it into a structures justifier object
structuredJustification <-
justifier::flatten(
justifierJustification
);
### Check it
str(structuredJustification, 1);
Run the code above in your browser using DataLab