Week 7: Parameterized Markdown

Author

Robert W. Walker

Published

February 27, 2023

Meeting Date: February 27, 2023.

Last updated: 2023-04-10 13:53:20

Timezone: America/Los_Angeles

Class Plan

  1. AMA
  2. Presentations with Quarto Markdown
  3. Writing functions
  4. Parameterized markdown

Slides:

Week 7 Slides

Homework

The seventh assignment consists of a parameterized markdown of some form or other.

Syllabus Module for Week 7

Deliverables: an email containing the URL to the documents.

Some Examples

The Site I am Building

My github main page

Readings:

  • Quarto Documentation [if not already done]

Resources

  • revealjs tools

Quarto Reference on Presentations

On Functions

The idea of map is a mapping. A function.

From Advanced R

Code
library(purrr)
triple <- function(x) x * 3
map(1:3, triple)
[[1]]
[1] 3

[[2]]
[1] 6

[[3]]
[1] 9

map(LETTERS[1:6], ~paste0(.x, ” is a letter.“, sep=”“))

Parameterized Markdown [for next time]

Syllabus cutout

Next: Unifying it All Together with Shiny

Readings:

Examples of Parameterized Markdown

References

Code
knitr::write_bib(names(sessionInfo()$otherPkgs), file="bibliography.bib")

References

Wickham, Hadley, and Lionel Henry. 2023. Purrr: Functional Programming Tools. https://CRAN.R-project.org/package=purrr.