modify_rmd_contents: Insert YAML values, headers, and footers in an existing Rmd...

View source: R/web_render.R

modify_rmd_contentsR Documentation

Insert YAML values, headers, and footers in an existing Rmd file.

Description

Insert YAML values, headers, and footers in an existing Rmd file.

Usage

modify_rmd_contents(
  input,
  default_yaml = NULL,
  pre_content = NULL,
  post_content = NULL
)

Arguments

input

A path to a .Rmd file.

default_yaml

A path to a .yml file containing default key-value pairs. Values will be overwritten by matching values in input header.

pre_content

A path to a file containing text to be inserted after the YAML header and before existing input content.

post_content

A path to a file containing text to be inserted after existing input content.

Value

a vector of strings


rmlane/bscContentHelpers documentation built on Jan. 30, 2024, 9:43 a.m.