Find a slide set across all lectures
find_slide_tex.Rd
Lectures need to be stored locally in the current directory with regular names like lecture_i2ml
.
It is strongly assumed that slide names such as slides-cart-predictions.tex
are unique across all lectures.
Usage
find_slide_tex(slide_file, lectures_tbl = collect_lectures())
Arguments
- slide_file
[character(1)]
Name of a (single) slide, with or without.tex
extension. See examples offind_slide_tex()
.- lectures_tbl
Must contain
tex
column. Defaults tocollect_lectures()
.
Examples
if (FALSE) { # fs::dir_exists(here::here("lecture_i2ml"))
# The "normal" way: A .tex file name
str(find_slide_tex(slide_file = "slides-cart-computationalaspects.tex"))
# Also acceptable: A full path (absolute or relative), convenient for scripts
str(find_slide_tex(slide_file = "lecture_i2ml/slides/cart/slides-cart-predictions.tex"))
# Lazy way: No extension, just a name
str(find_slide_tex(slide_file = "slides-cart-predictions"))
# Can also ge tthe .tex file for a .pdf
str(find_slide_tex(slide_file = "slides-cart-predictions.pdf"))
}