bookdownplus {bookdownplus}R Documentation

Create demo files for building books with R bookdown package.

Description

Technically, bookdownplus is a collection and selector of R bookdown templates. bookdownplus helps you write academic journal articles, guitar books, chemical equations, mails, calendars, and diaries. R bookdownplus extends the features of bookdown, and simplifies the procedure. Users only have to choose a template, clarify the book title and author name, and then focus on writing the text. No need to struggle in YAML and LaTeX.

Usage

bookdownplus(
  template = "copernicus",
  more_output = NULL,
  title = "title",
  author = "author",
  render = TRUE,
  rproj = TRUE,
  output_name = NA,
  to = "./",
  new = TRUE
)

Arguments

template

character. Choose a template for your book or doc. The default template is 'thesis_classic'. Run template() to see the available templates.

more_output

optional output formats besides pdf_book, which can be (run get_output() for hints):

  • NULL (default)

  • 'word_document2'

  • 'html_document2'

  • 'epub_book'

  • 'gitbook'

title

character. book title.

author

character. book author.

render

logical. whether to render automatically

rproj

logical. whether to created an .Rproj file automatically

output_name

chracter. the name of the output files. If NA (default), the template name will be used.

to

character. The destination directory for the bookdown project

new

logical. Whether create a new project. If FALSE, only render the existing book.

Value

demo files to build with bookdown

Examples

## Not run: 
bookdownplus(render = FALSE)
for (i in get_template()[1:20, 1]) {
    # bookdownplus(template = i, more_output = more_output()[1:3], to = i)
}

## End(Not run)

[Package bookdownplus version 1.5.8 Index]