automate_load: Access repro YAML Metadata from within the document

automate_loadR Documentation

Access repro YAML Metadata from within the document

Description

  • automate_load_packages() loads all packages listed in YAML via library()

  • automate_load_scripts() registeres external scripts via knitr::read_chunk()

  • automate_load_data() reads in the data from the yaml with abitrary functions

Usage

automate_load_packages()

automate_load_scripts()

automate_load_data(data, func, ...)

Arguments

data

How is the entry in the YAML called? It will be the name of the object.

func

Which function should be used to read in the data? Its first argument must be the path to the file.

...

Further arguments supplied to func.

Value

automate_load_packages() & automate_load_scripts() do not return anything. automate_load_data() returns the data.


aaronpeikert/repro documentation built on Sept. 16, 2024, 7:12 p.m.