yml_blank: Return a blank object to be discarded from YAML

View source: R/yml_helpers.R

yml_blankR Documentation

Return a blank object to be discarded from YAML

Description

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.

Usage

yml_blank()

is_yml_blank(x)

Arguments

x

a field from a yml object

Value

a yml_blank object

See Also

yml_discard(), yml_replace()

Examples


yml() %>%
  yml_replace(author = yml_blank()) %>%
  yml_discard(~is_yml_blank(.x))



ymlthis documentation built on Aug. 5, 2022, 5:23 p.m.