knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
library(doublecrochet)

Let's just render the template...

# should be done in console - adjust file path as needed...
rmarkdown::render("vignettes/cool_xaringan_stuff.Rmd")
doublecrochet::crochet("cool_xaringan_stuff.Rmd")

And then render the double crocheted output...

# should be done in console - adjust file path as needed...
rmarkdown::render("vignettes/cool_xaringan_stuff_double_crochet.Rmd")
file.copy(to = "../inst/rmarkdown/templates/double-crochet/skeleton/skeleton.Rmd",
          from = "cool_xaringan_stuff.Rmd", 
          overwrite = T)

file.copy(to = "../inst/rmarkdown/templates/examples/skeleton/skeleton.Rmd",
          from = "examples.Rmd", 
          overwrite = T)

file.copy(to = "../inst/rmarkdown/templates/mathtype/skeleton/skeleton.Rmd",
          from = "mathproblems.Rmd", 
          overwrite = T)


EvaMaeRey/doublecrochet documentation built on Jan. 13, 2022, 7:30 p.m.