add_missing_fields: add_missing_fields

View source: R/add_missing_fields.R

add_missing_fieldsR Documentation

add_missing_fields

Description

Internal function for update_fm(). Adds missing list items to a list (list_obj), based on a template

Usage

add_missing_fields(list_obj, template, reorder = FALSE)

Arguments

list_obj

the list (for our purposes, probably your front-matter.yml after being read in)

template

the list template to compare to

reorder

do you want to reorder the resulting list, based on template order? default=F

Value

list_obj, with any missing fields added and reordered by template if requested


galacticpolymath/GPpub documentation built on April 5, 2025, 6:04 p.m.