change_chunk_suffix: Change the chunk and tag suffixes for a .Rmd file

View source: R/make-rmd.R

change_chunk_suffixR Documentation

Change the chunk and tag suffixes for a .Rmd file

Description

Change the chunk and tag suffixes for a .Rmd file

Usage

change_chunk_suffix(file_name, chunk_suffix = "")

Arguments

file_name

Filename/path of the .rmd file to create/modify. If it does not exist, an error will be given

chunk_suffix

A string to be appended to the chunk names and tags with a preceding dash. If a name has already been appended this new suffix will replace it. If this is the empty string, any previous suffixes will be removed.

Value

Nothing

Examples

unlink("test.Rmd")
create_default_rmd("test.Rmd")
change_chunk_suffix("test.Rmd", "test-suffix")
unlink("test.Rmd")

pbs-assess/ggmse documentation built on Nov. 21, 2023, 8:06 p.m.