Skip to contents

Slide templating

Template, document format, and support files to make things self-contained.

kjh_css_files()
Construct vector of CSS file paths
kjh_js_files()
Path to js file
kjh_lib_dir()
The basic lib dir
kjh_remark_js()
Path to remark.js
kjh_resource_file()
Path to the kjhslides package
kjh_slides_reader()
kjh Slide Document Format.
kjh_local_slides_reader()
kjh Slide Document Format. Local version.

Slide options

Setting options that can’t go in the document format.

kjh_register_tenso()
Register Tenso font variant
kjh_set_knitr_opts()
Set knitr options
kjh_set_myriad_theme()
Turn on Myriad
kjh_set_classic_theme()
Set to classic theme
kjh_set_showtext()
Turn on showtext
kjh_set_slide_theme()
Slide theme
kjh_set_xaringan_opts()
Xaringan Extra options

Slide processing

Tools to make the slides and support files.

kjh_name_all_chunks()
Rename all chunks
kjh_unname_chunks()
Unname all unnameable chunks
kjh_unname_all_chunks()
Unname all chunks
kjh_update_all_chunk_names()
Convert all chunks
kjh_render_one_slide()
Render one slide deck from Rmd to HTML
kjh_render_all_slides()
Render all the slides
kjh_decktape_one_slide()
Convert an HTML slide deck to PDF
kjh_decktape_all_slides()
Render every HTML file in the slides/ folder to PDF and put it in pdf_slides/
kjh_purl_one_slide()
Purl one Rmd file
kjh_purl_all_slides()
Purl all slide .Rmds to .R and put them in the code/ folder

Support and Utility

Background functions.

check_chunk_codefig()
Check for codefig chunks
check_chunk_include()
Which chunks are safe to exclude
check_in_out()
Check if in and out folders exist
get_files_of_type()
Get vector of filepaths
get_ggplot_colors()
Generate ggplot default colors
kjh_clear_registry()
Clear the systemfonts registry
kjh_register_myriad()
Register Myriad font variant
kjh_slide_colors()
Slide colors
kjh_theme_map()
Provide theme map
kjh_theme_nymap()
NYC Map theme
ragg_png()
Turn on ragg
theme_tenso()
Theme Tenso

Slide bundle

Extract a slides folder from a pkg zip file.

setup_slides()
setup_slides