slides_to_pdf: Generate PDF lecture slides for a HUGO tachR website

View source: R/slides_to_pdf.R

slides_to_pdfR Documentation

Generate PDF lecture slides for a HUGO tachR website

Description

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).

Usage

slides_to_pdf(lecture_number, module = "AnD", port = 4321)

Arguments

lecture_number

Number of the lecture to convert to PDF. May be a vector.

module

character. Module name to use as a prefix in PDF file name. Defaults to "AnD".

port

Port number on which to locally serve the Hugo website hosting lecture slides.

Details

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".

Examples

slides_to_pdf(1:3)


mivalek/teachR documentation built on Aug. 26, 2022, 6 a.m.