View source: R/import_from_json.R
import_from_json | R Documentation |
Import a structured justifier object from JSON
import_from_json(x)
x |
Either a path to an existing file, or a character vector with the JSON to import. |
The justifier object.
### Programmatically create a justification with two assertions ### but without sources; flatten it; and show the json 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 ) |> justifier::flatten() -> originalObject; originalObject |> justifier::export_to_json() -> exportedJSON; ### And import it again importedFromJSON <- justifier::import_from_json( exportedJSON );
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.