Skip to content

Get Meta Type

The get_meta_type() function in the reportifyr package retrieves a list of standardized meta_type from a specified standard_footnotes.yaml file.


get_meta_type()

R: Get meta types from standard_footnotes.yaml
get_meta_typeR Documentation

Description

Get meta types from standard_footnotes.yaml

Usage

get_meta_type(path_to_footnotes_yaml)

Arguments

path_to_footnotes_yaml

The file path to the standard_footnotes.yaml file.

Value

A list of meta_type to be called while performing an analysis

Examples

## Not run: 
standard_footnotes_yaml <- here::here("report", "standard_footnotes.yaml")
meta_type <- get_meta_type(path_to_footnotes_yaml = standard_footnotes_yaml)

## End(Not run)

Returns

A named list of meta_type from the standard_footnotes.yaml file.


Logging

  • Debug: Logs the start and end of the function, the successful reading of standard_footnotes.yaml, and the successful extraction of meta_type.
  • Error: Logs errors for missing files, incorrect file types, or missing required fields within standard_footnotes.yaml.

Additional Resources

  • reportifyr GitHub: Refer to the reportifyr repository for more details.
  • YAML Documentation: Learn more about YAML syntax and structure here.