encode.yamlet | R Documentation |
Encodes yamlet. Each 'guide' element with length > 1
is converted to an encoding, if possible. If data
is supplied, conditional guides will be ignored.
## S3 method for class 'yamlet'
encode(x, ..., target = "guide", data = NULL)
x |
yamlet |
... |
ignored |
target |
attribute to encode |
data |
optional data.frame for guide context |
yamlet, with guide elements possibly transformed to encodings
Other encode:
list2encoding()
meta <- system.file(package = 'yamlet', 'extdata','quinidine.yaml')
meta <- as_yamlet(meta)
meta <- encode(meta)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.