create_temp_bundle: Copy files from a shared location; optionally overwrite YAML

View source: R/web_render.R

create_temp_bundleR Documentation

Copy files from a shared location; optionally overwrite YAML

Description

Copy files from a shared location; optionally overwrite YAML

Usage

create_temp_bundle(
  input,
  default_yaml = pkg_resource("rmd_files/web_defaults.yml"),
  pre_content = c(pkg_resource("rmd_files/web_opts_chunk.Rmd"),
    pkg_resource("rmd_files/web_page_toc.Rmd")),
  post_content = c(pkg_resource("rmd_files/web_reference_block.Rmd")),
  temp_dir = tempdir()
)

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.

temp_dir

A path where the modified page bundle (directory) will be created


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