safe_rmd_prevw: Preview chapter from other location than project folder

Description Usage Arguments Value

View source: R/rmd_wrangle.R

Description

safe_rmd_prevw allows the user to preview a book chapter rendered with bookdown when the chapter .Rmd file is located in a sub-folder away from the project file. It creates a temporary environment and executes the bookdown::preview_chapter() within this temporary working directory. Furthermore, it stores the output pdf in the same directory. Robust function: FALSE

Usage

1
safe_rmd_prevw(chapter = NULL, folder = NULL)

Arguments

chapter

Name (with .Rmd extension) of chapter to render

folder

Path to where .Rmd files are located within project

Value

PDF


AndreSjuve/flowaid documentation built on Dec. 17, 2021, 8:50 a.m.