Advanced R topics working sessions


Date

Welcome to FES/FOR 505, Advanced R Topics. This is an informal “working session” class for students wanting to get a little extra practice in R. The class was designed so students work together through material in real time. Each class is 1.5-2 hours.

Topics covered:
Week 01: Introduction to Git/GitHub
Week 02: Build a personal website with distill and postcards
Week 03: Deploy website using GitHub Pages
Week 04: Explore gt for making tables
Week 05: gt flair: colors, images, and themes
Week 06: Learn to write functions in R
Week 07: More Git: collaborators, merge conflicts, and pull requests
Week 08: Interactive graphics and tables
Week 09: Reproducible examples with reprex
Week 10: GitHub issues

Materials for the class, including the slides, are here. Slides are written out in a longer format for students who wanted to work through the material on their own. Press “P” after opening slides to see any additional presenter notes.

Software and R packages

This class was held spring 2021, using R 4.0.4 and RStudio 1.4.

The R packages, with version numbers, used in the working sessions. The relevant weeks are in parentheses:

distill v. 1.2 (Week 2)
postcards v. 0.2.0 (Week 2)
devtools v. 2.3.2 (Week 2)
fontawesome v. 0.1.0 (not 0.2.0; Week 2)
gt v. 0.2.2 (Week 4)
webshot v. 0.5.2 (Week 4)
dplyr v. 1.0.5 (Week 4)
tidyr v. 1.1.3 (Week 5)
usethis v. 2.0.1 (Week 7)
gh v. 1.2.1 (Week 7)
htmlwidgets v. 1.5.3 (Week 8)
ggplot2 v. 3.3.3 (Week 8)
palmerpenguins v. 0.1.0 (Week 8)
plotly v. 4.9.3 (Week 8)
DT v. 0.18 (Week 8)
leaflet v. 2.0.4.1 (Week 8)
dygraphs v. 1.1.1.6 (Week 8)
flexdashboard v. 0.5.2 (Week 8)
reprex v. 2.0.0 (Week 9)
datapasta v. 3.1.0 (Week 9)

Installation code for current versions:

install.packages(c("distill", "postcards", "devtools", "fontawesome", 
                   "gt", "webshot", "dplyr", "tidyr", "usethis",
                   "gh", "htmlwidgets", "ggplot2", "palmerpenguins",
                   "plotly", "DT", "leaflet", "dygraphs", "flexdashboard",
                   "reprex", "datapasta"))

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.