Skip to content

Commit

Permalink
mask linter comments in vignette
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksander Chlebowski committed Mar 1, 2024
1 parent 88815af commit 177870a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion vignettes/bootstrap-themes-in-teal.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ vignette: >
%\VignetteEncoding{UTF-8}
---

```{r, include=FALSE}
knitr::opts_template$set(
remove_linter_comments = list(tidy = function(code, ...) gsub(pattern = "#\\s?nolint.*", replacement = "", code))
)
```


## Introduction

We offer an easy application of a custom Bootstrap theme in a `teal` app. `teal` uses the `bslib` `R` package which provides tools for customizing Bootstrap themes, including those of `shiny` apps.
Expand Down Expand Up @@ -91,7 +98,8 @@ If you want to update the theme in a regular `shiny::fluidPage`-like app, you do

In this section we provide a step-by-step guide to customizing a `teal` application theme interactively with `bslib::run_with_themer()`. We recommend starting with a simple case and once you are satisfied, verifying with your full application. To that end we will use the `teal` application below. For this example we assume that we want to use Bootstrap 5. To start, we launch the app with `bslib::run_with_themer(app$ui, app$server)` instead of `shiny::shinyApp`.

```{r, eval = FALSE}

```{r, eval = FALSE, opts.label=c("remove_linter_comments")}
options("teal.bs_theme" = bslib::bs_theme(version = "5"))
library(teal)
Expand Down

0 comments on commit 177870a

Please sign in to comment.