diff --git a/vignettes/teal-reporter-blocks-overview.Rmd b/vignettes/teal-reporter-blocks-overview.Rmd index 697171c8..3015aa91 100644 --- a/vignettes/teal-reporter-blocks-overview.Rmd +++ b/vignettes/teal-reporter-blocks-overview.Rmd @@ -42,14 +42,13 @@ To access the default values for the `global_knitr` defaults include: You can access and modify these settings as follows: ```{r} library(teal.reporter) -getOption('teal.reporter.global_knitr') +getOption("teal.reporter.global_knitr") ``` ## Example Report Using Multiple Content Blocks Below is a complete example demonstrating how to create a report combining various content blocks: ```{r} - library(ggplot2) report_card <- ReportCard$new() @@ -57,11 +56,11 @@ report_card <- ReportCard$new() report_card$append_text("Header 2 text", "header2") report_card$append_text("A paragraph of default text") report_card$append_plot( - ggplot(airquality, aes(x = Ozone, y = Solar.R)) + geom_line(na.rm = T) + ggplot(airquality, aes(x = Ozone, y = Solar.R)) + + geom_line(na.rm = T) ) report_card$append_table(airquality) report_card$append_rcode("airquality_new <- airquality", echo = FALSE) report_card$append_metadata(key = "lm", value = lm(Ozone ~ Solar.R, airquality)) report_card$get_content() - ```