Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make sure the code chunks does not break because of warnings #1471

Merged
merged 3 commits into from
Jan 31, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions vignettes/adding-support-for-reporting.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ The entire life cycle of objects involved in creating the report and configuring
## Custom module

Let us consider an example module, based on the example module from `teal`:
```{r, message=FALSE}
```{r message=FALSE, warning=FALSE}
library(teal)

my_module <- function(label = "example teal module") {
module(
label = label,
Expand Down Expand Up @@ -255,7 +256,7 @@ In the final example, we have incorporated `teal.code` snippets.
This allows `ReporterCard` to store the code necessary to generate the table along with the table itself.
To learn more about `teal.code` see the vignette _`qenv`_ in `teal.code`.

```{r}
```{r message=FALSE, warning=FALSE}
library(teal)
library(teal.reporter)

Expand Down
5 changes: 1 addition & 4 deletions vignettes/data-as-shiny-module.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,9 @@ One case for postponing data operations is datasets that are dynamic, frequently
Such data cannot be created once and kept in the global environment.
Using `teal_data_module` enables creating a dataset from scratch every time the user starts the application.

```{r, message = FALSE, warning = FALSE}
```{r message = FALSE, warning = FALSE}
library(teal)
```


```{r}
data_module <- teal_data_module(
ui = function(id) tags$div(),
server = function(id) {
Expand Down
4 changes: 1 addition & 3 deletions vignettes/data-transform-as-shiny-module.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,9 @@ This vignette presents the way on how to manage custom data transformations in `

We initialize a simple `teal` app where we pass `iris` and `mtcars` as the input datasets.

```{r, message = FALSE, warning = FALSE}
```{r message = FALSE, warning = FALSE}
library(teal)
```

```{r}
data <- within(teal_data(), {
iris <- iris
mtcars <- mtcars
Expand Down
2 changes: 1 addition & 1 deletion vignettes/decorate-module-output.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ This approach adds functionality solely to the server code of the module.
In the following example, we assume that the module contains an object (of class `ggplot2`) named `plot`.
We modify the title and x-axis label of plot:

```{r}
```{r message=FALSE, warning=FALSE}
library(teal)
static_decorator <- teal_transform_module(
label = "Static decorator",
Expand Down
2 changes: 1 addition & 1 deletion vignettes/getting-started-with-teal.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ More advanced users of the framework can also create new analysis modules which

This simple `teal` application takes the `iris` and `mtcars` datasets and displays their contents:

```{r, message=FALSE}
```{r message=FALSE, warning=FALSE}
library(teal)

app <- init(
Expand Down
2 changes: 1 addition & 1 deletion vignettes/including-data-in-teal-applications.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Thus, the first step of building a `teal` app is creating a `teal_data` object.

A `teal_data` object is created by calling the `teal_data` function and passing data objects as `name:value` pairs.

```{r, message=FALSE}
```{r message=FALSE, warning=FALSE}
library(teal)

# create teal_data
Expand Down
Loading