Reads YAML Options Embbeded into a File

read.yaml_section(section, file = "~/.Rprofile", text = NULL)

Arguments

section

section name to lookup in the file. In the file this defined by paired tags "#<section_name>", "#</section_name>", or a single tag "#<section_name@file_path>" that redirect to a YAML file.

file

path to the file to parse. Default is to parse the user's .Rprofile.

text

text to parse. If provided, then argument file is not used.