class: title
1
Setting the Stage
xaringan
Garrick Aden-Buie & Silvia Canelón
Professional, Polished, Presentable
--- class: inverse, middle, center # Welcome! ## Let's learn how to make great slides<br> with xaringan (and friends) ### Let's review a few things --- # xaringan .f7.pull-left[ .center[ <img src="https://raw.githubusercontent.com/rstudio/hex-stickers/master/PNG/xaringan.png" alt="" width="150px"> .pkg[xaringan] introduces <br>.b[remark.js] to .pkg[rmarkdown] <img src="https://raw.githubusercontent.com/rstudio/hex-stickers/master/PNG/rmarkdown.png" alt="" width="150px"> ]] .mt4.pull-right[ <a href="https://slides.yihui.org/xaringan"><img src="assets/img/01/docs-xaringan.png" alt="">xaringan documentation</a> ] --- # remark.js .pull-left[ .center[ ###
<br>JavaScript .f6.b[and] ###
<br>Markdown ] ] .pull-right[ "A simple, in-browser, Markdown-driven slideshow tool targeted at people who know their way around HTML and CSS." <a href="https://remarkjs.com"><img src="assets/img/01/docs-remarkjs.png" alt="">remarkjs documentation</a> ] --- class: f7 ## CSS .f6.mb4[ **CSS** stands for **C**ascading **S**tyle **S**heet, and turns... ] .pull-left[ functional, but dull HTML (content)... <img src="assets/img/01-title-slide-no-css.png" alt="Title slide with no formatting" width="100%" style="border:2px solid LightGray"/> ] .pull-right[ ...into HTML (content) with style! 😎<br><br> <img src="assets/img/01-title-slide.png" alt="Title slide with styling including a background image, cutom fonts, and content placement" width="100%"/> ] ??? Remark helps us: - create a new kind of slide using Markdown syntax and slide properties - format slides (e.g. with content alignment) - present (using keyboard shortcuts) --- class: header_background f6 # Let's get started! Restart your R session <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>F10</kbd> .mt4[ Open `01-introduction/01-start.Rmd` ] .mt4[ Run `xaringan::infinite_moon_reader()` to preview the slides ] --- # YAML ```yaml --- title: "01 - Setting the Stage" subtitle: "Professional, Polished, Presentable" author: "Dr. Avahi Cleesei" institute: "Bemaraha University, Madagascar" date: "2021-07-07" output: xaringan::moon_reader: # xaringan output nature: slideNumberFormat: "%current%" # slide number format highlightStyle: github # highlighting syntax for code highlightLines: true # code line highlighting ratio: 16:9 # 4:3 for standard size countIncrementalSlides: true # incremental slide counting --- ``` --- # Setup chunk ```r # suppresses the version number in the subdirectory name options(htmltools.dir.version = FALSE) # preset options knitr::opts_chunk$set( fig.retina = 2, # specifies scaling for retina displays warning = FALSE, # warning messages do not show message = FALSE # informational messages do not show ) # loads packages library(fontawesome) # FontAwesome icon package library(tidyverse) # collection of data science packages ``` --- class: header_background, middle, center, f6 # Activity Time ##
[materials/act-01/01-introduction](/materials/act-01/01-introduction/#activity) Time for the .pkg[xaringan] scavenger hunt!