![]() ![]() I’ve also included an img/ folder to hold stock images I’ve used in the template, but this isn’t strictly necessary. skeleton.Rmd for the template you created.theme-fonts.css for the font face specifications.This is all explained in the Document Templates chapter of the ‘ R Markdown: a Definitive Guide’ book by Yihui Xie, JJ Allaire and Garrett Grolemund.Īt the very least, your repo will need to contain the path inst/rmarkdown/templates/your-theme/skeleton/, which will typically contain three files: You need a specific repo structure to provide your template. So how can the CSS and R Markdown template be delivered to people in one bundle? In a package of course. Note the use of the title-slide class and the middle class for vertical alignment. The bottom half is the pre-filled opening slide with the speaker’s details the user needs only to modify the filler text. Note the reference to the CSS files and seal: false as mentioned. The top half of the code is the YAML that provides metadata for the R Markdown file. bold Job title Government Digital Service. output : xaringan ::moon_reader : css : seal : false lib_dir : libs nature : highlightStyle : github highlightLines : true countIncrementalSlides : false - class : title -slide, middle. This is instead pre-specified for the user in the template: ![]() Instead it’s an introduction slide that contains the speaker’s name, job, affiliation and Twitter handle.įor example, the user may not know to set class: title-slide and add seal: false in the YAML to override the creation of a default title slide. For example, the first slide of my organisation’s template doesn’t actually contain a ‘title’. The template itself is just a pre-filled R Markdown that shows the approved slide types and some example content. The design philosophy is important to the organisation. I also need to create an R Markdown template to demonstrate a restricted set of accepted slide designs. The style is not the only important part of recreating my organisation’s presentations. I’ve written a bit before about how to access Google Fonts for Blogdown’s Lithium theme. To overcome this, I recreated their theme for ![]() The downside is that any R outputs have to be copy-pasted in, which isn’t very reproducible. The template was designed with a particular philosophy in mind. The organisation I work for uses a Google Slides template with pre-set styles and slide layouts. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |