View source: R/slides_to_pdf.R
slides_to_pdf | R Documentation |
Requires a local install of decktape. Function converts one or more knitted teachR::xaringan_slides files to a PDF version with slides next to a "notepad" sheet (example).
slides_to_pdf(lecture_number, module = "AnD", port = 4321)
lecture_number |
Number of the lecture to convert to PDF. May be a vector. |
module |
|
port |
Port number on which to locally serve the Hugo website hosting lecture slides. |
Function will first check if blogdown::serve_site()
has been called. If it hasn't it will call it before running decktape on lectures hosted at "http://localhost:[port]/lectures/[lecture_number]/slides/?handout=true"
.
Ouptu PDF gets saved to "content/lectures/[lecture_number]/[module]_lecture[lecture_number]_slides.pdf"
.
slides_to_pdf(1:3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.