fixtitle: Easily edit bookdown chapter tiles

View source: R/fixtitle.R

fixtitleR Documentation

Easily edit bookdown chapter tiles

Description

In a large project project particularly with multiple authors, the simple task of editing a chapter title can be difficult since a few steps are required: find the right Rmd, open the file, change the title, save it, close it. The fixtitle() function simplifies the process by doing all this in one line of code. It can be used for searching only, or searching and replacing.

Usage

fixtitle(find, replace = NULL, write = FALSE)

Arguments

find

full or partial title string to search for

replace

replacement string (optional)

write

logical indicating whether to change the title, defaults to FALSE

Examples

## Not run: 
fixtitle(find = "Instructions")    # search only

fixtitle(find = "Instructions",    # search and replace test
         replace = "Submission instructions")

fixtitle(find = "Instructions",    # search and replace actual
         replace = "Submission instructions",
         write = TRUE)

## End(Not run)



jtr13/jtr documentation built on June 11, 2025, 12:42 a.m.