Skip to content

Commit

Permalink
[skip style] [skip vbump] Restyle files
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed May 14, 2024
1 parent 6a73702 commit 82715e1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions vignettes/teal-reporter-blocks-overview.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -42,26 +42,25 @@ 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()
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)

Check warning on line 60 in vignettes/teal-reporter-blocks-overview.Rmd

View workflow job for this annotation

GitHub Actions / SuperLinter 🦸‍♀️ / Lint R code 🧶

file=vignettes/teal-reporter-blocks-overview.Rmd,line=60,col=24,[T_and_F_symbol_linter] Use TRUE instead of the symbol 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()
```

0 comments on commit 82715e1

Please sign in to comment.