format_yaml function

Format or write R objects as YAML 1.2.