yml_blank | R Documentation |
ymlthis treats NULL
, NA
, and other common argument defaults as literal
(e.g. author = NULL
will produce "author: null"). yml_blank()
is a helper
function to indicate that the field should not be included. yml_blank()
is
primarily used as a default argument for fields that should not be included
by default.
yml_blank() is_yml_blank(x)
x |
a field from a |
a yml_blank
object
yml_discard()
, yml_replace()
yml() %>% yml_replace(author = yml_blank()) %>% yml_discard(~is_yml_blank(.x))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.