Convert Bookdown to Leanpub

bookdown_to_leanpub(
  path = ".",
  render = TRUE,
  output_dir = "manuscript",
  make_book_txt = FALSE,
  quiz_dir = "quizzes",
  run_quiz_checks = FALSE,
  remove_resources_start = FALSE,
  verbose = TRUE,
  footer_text = NULL
)

Arguments

path

path to the bookdown book, must have a `_bookdown.yml` file

render

if `TRUE`, then [bookdown::render_book()] will be run on each Rmd.

output_dir

output directory to put files. It should likely be relative to path

make_book_txt

Should [ottrpal::bookdown_to_book_txt()] be run to create a `Book.txt` in the output directory?

quiz_dir

directory that contains the quiz .md files that should be checked and incorporated into the Book.txt file

run_quiz_checks

TRUE/FALSE run quiz checks

remove_resources_start

remove the word `resources/` at the front of any image path.

verbose

print diagnostic messages

footer_text

Optionally can add a bit of text that will be added to the end of each file before the references section.

Value

A list of output files and diagnostics