Skip to contents

Export the attributes in a parsed source(s) object to YAML

Usage

export_attributes_from_parsedSources(
  x,
  file = "ROCK_attributes.rock",
  path = NULL,
  preventOverwriting = rock::opts$get("preventOverwriting")
)

Arguments

x

A rock_parsedSource or rock_parsedSources object.

file

The filename to write to; pass NULL to only return the YAML as a character vector

path

If not NULL, this will be combined with the file argument

Value

The YAML as a character vector