read.yaml_section: Reads YAML Options Embbeded into a File

View source: R/options.R

read.yaml_sectionR Documentation

Reads YAML Options Embbeded into a File

Description

Reads YAML Options Embbeded into a File

Usage

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.

Value

Returns a list representation of the YAML header


renozao/pkgmaker documentation built on May 3, 2023, 6:04 p.m.