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

put table first #266

Merged
merged 7 commits into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from 4 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: 0 additions & 5 deletions book/_utils/shinylive.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@ Global shinylive configuration is available in the `_quarto.yaml` file.
The performance is slighly worse and some of the features (e.g. downloading) might not work at all.
:::

<!--
we have to put some code upfront
- need to setup repos on r-universe - currently it's not possible to setup this elsewhere (e.g. shinylive config or chunk attribute)
-->

```{r shinylive-constructor, echo = FALSE, results = "asis", opts.label = "skip_if_testing"}
repo_url <- ifelse(identical(Sys.getenv("QUARTO_PROFILE"), "stable"), "https://insightsengineering.r-universe.dev", "https://pharmaverse.r-universe.dev")
options(webr_pkg_repos = c("r-universe" = repo_url, getOption("webr_pkg_repos")))
Expand Down
15 changes: 7 additions & 8 deletions book/repro.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,27 @@

### Timestamp

```{r systime, message = FALSE}
#| code-fold: show
#| renv.ignore: TRUE
```{r systime}
#| echo: FALSE

Sys.time()
```

### Session Info

```{r sessioninfo, message = FALSE}
#| code-fold: show
```{r sessioninfo}
#| echo: FALSE
#| renv.ignore: TRUE

sessionInfo()
sessioninfo::session_info()
```

### `.lock` file

Download the `.lock` file and use [`renv::restore()`](https://rstudio.github.io/renv/reference/restore.html) on it to recreate environment used to generate this website.

```{r snapshot, message = FALSE, opts.label = "skip_if_testing"}
#| code-fold: true
```{r snapshot, opts.label = "skip_if_testing"}
#| echo: FALSE
#| renv.ignore: TRUE

parent_file_path <- knitr::current_input(dir = TRUE)
Expand Down
4 changes: 1 addition & 3 deletions book/tables/ADA/adat01.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ subtitle: Baseline Prevalence and Incidence of Treatment Emergent ADA
{{< include ../../_utils/envir_hook.qmd >}}

:::: {.panel-tabset}
## Data Setup

```{r setup, message = FALSE}
```{r setup, message = FALSE, echo = FALSE}
#| code-fold: show

library(tern)
Expand Down
19 changes: 11 additions & 8 deletions book/tables/adverse-events/aet01.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,8 @@ subtitle: Safety Summary
{{< include ../../_utils/envir_hook.qmd >}}

:::: {.panel-tabset}
## Data Setup

To illustrate, additional variables such as flags (TRUE/FALSE) for select AEs of interest and select AE baskets are added to the `adae` dataset.

```{r setup, message = FALSE}
#| code-fold: show

```{r setup, echo = FALSE}
library(tern)
library(dplyr)

Expand Down Expand Up @@ -368,6 +363,16 @@ result
{{< include ../../_utils/webr.qmd >}}
:::

## Data Setup

To illustrate, additional variables such as flags (TRUE/FALSE) for select AEs of interest and select AE baskets are added to the `adae` dataset.

```{r setup}
#| code-fold: show
```

::::

{{< include ../../_utils/save_results.qmd >}}

## `teal` App
Expand Down Expand Up @@ -454,5 +459,3 @@ shinyApp(app$ui, app$server)
:::

{{< include ../../repro.qmd >}}

::::
Loading