--- title: "Star Wars films (static HTML)" output: rmarkdown::html_vignette vignette: > %\VignetteIndexEntry{Star Wars films (static HTML)} %\VignetteEngine{knitr::rmarkdown} %\VignetteEncoding{UTF-8} --- This vignette contains some data about the Star Wars films for use in rvest examples and vignettes. ```{r, echo = FALSE, results = "asis"} library(rvest) crawl_html <- function(x) { x %>% gsub("\r", "", .) %>% gsub("\n\n", "
", .) %>% gsub("\n", " ", .) %>% paste0("
", ., "
") } film_desc <- function(x) { glue::glue_data(x, "Released: {release_date}
Director: {director}