insightsengineering / insightsengineering/teal.modules.general

View Variables: Left hand vs. bar plot table "Missing" counts don't match

Open
#697 8 comments 0 reactions 1 assignee Claimed by @vedhav View on GitHub
bug core
Dominant language
R
Stars
16
Forks
23
PR merge metrics
No merged PRs in 30d

Description

### What happened?

the "Missing" column count in the left hand table does not match the "Missing" record count in the table underneath the bar chart.

![image](https://github.com/insightsengineering/teal.modules.general/assets/40777373/656a2f57-7932-4252-954f-80670221b121)

### sessionInfo()

```R
running on https://connect.apollo.roche.com/connect/#/apps/7bb9648c-75ab-4075-a021-d587f175a42e/access
```

### Relevant log output

```R
2024/02/26 10:39:29 AM: [rsc-session] Content GUID: 7bb9648c-75ab-4075-a021-d587f175a42e
2024/02/26 10:39:29 AM: [rsc-session] Content ID: 6254
2024/02/26 10:39:29 AM: [rsc-session] Bundle ID: 103266
2024/02/26 10:39:29 AM: [rsc-session] Job Key: P5B9obyFNn4t2ks2
2024/02/26 10:39:29 AM: Running on host: ppdpaa0838-euc1.aws.science.roche.com
2024/02/26 10:39:29 AM: Linux distribution: Ubuntu 22.04.3 LTS (jammy)
2024/02/26 10:39:29 AM: Running as user: uid=999(rstudio-connect) gid=998(rstudio-connect) groups=998(rstudio-connect)
2024/02/26 10:39:29 AM: Connect version: 2023.09.0
2024/02/26 10:39:29 AM: LANG: C.UTF-8
2024/02/26 10:39:29 AM: Working directory: /opt/rstudio-connect/mnt/app
2024/02/26 10:39:29 AM: Using R 4.2.2
2024/02/26 10:39:29 AM: R.home(): /opt/R/4.2.2/lib/R
2024/02/26 10:39:29 AM: Content will use associated Packrat library
2024/02/26 10:39:29 AM: Adding Packrat library to R_LIBS and .libPaths: /opt/rstudio-connect/mnt/app/packrat/lib/x86_64-pc-linux-gnu/4.2.2
2024/02/26 10:39:29 AM: R_LIBS: /opt/rstudio-connect/mnt/app/packrat/lib/x86_64-pc-linux-gnu/4.2.2
2024/02/26 10:39:29 AM: .libPaths(): /opt/rstudio-connect/mnt/app/packrat/lib/x86_64-pc-linux-gnu/4.2.2, /opt/R/4.2.2/lib/R/library
2024/02/26 10:39:29 AM: shiny version: 1.8.0
2024/02/26 10:39:29 AM: httpuv version: 1.6.13
2024/02/26 10:39:29 AM: rmarkdown version: 2.25
2024/02/26 10:39:29 AM: knitr version: 1.45
2024/02/26 10:39:29 AM: jsonlite version: 1.8.8
2024/02/26 10:39:29 AM: RJSONIO version: (none)
2024/02/26 10:39:29 AM: htmltools version: 0.5.7
2024/02/26 10:39:29 AM: reticulate version: (none)
2024/02/26 10:39:29 AM: Using pandoc: /opt/rstudio-connect/ext/pandoc/2.16
2024/02/26 10:39:30 AM: Using Shiny bookmarking base directory /opt/rstudio-connect/mnt/bookmarks
2024/02/26 10:39:30 AM:
2024/02/26 10:39:30 AM: Starting R with process ID: '3512042'
2024/02/26 10:39:30 AM: Shiny application starting ...
2024/02/26 10:39:34 AM: There are no scda.XXXX libraries installed, like scda.2022.
2024/02/26 10:39:34 AM: Please install an scda database to take full advantage of the scda package.
2024/02/26 10:39:34 AM: Visit https://insightsengineering.github.io/scda.2022/ for details on scda.2022 and how it can be installed.
2024/02/26 10:39:34 AM:
2024/02/26 10:39:34 AM: Attaching package: ‘shinydashboard’
2024/02/26 10:39:34 AM:
2024/02/26 10:39:34 AM: The following object is masked from ‘package:graphics’:
2024/02/26 10:39:34 AM:
2024/02/26 10:39:34 AM: box
2024/02/26 10:39:34 AM:
2024/02/26 10:39:34 AM: Loading required package: goshawk
2024/02/26 10:39:34 AM: Loading required package: dplyr
2024/02/26 10:39:34 AM:
2024/02/26 10:39:34 AM: Attaching package: ‘dplyr’
2024/02/26 10:39:34 AM:
2024/02/26 10:39:34 AM: The following objects are masked from ‘package:stats’:
2024/02/26 10:39:34 AM:
2024/02/26 10:39:34 AM: filter, lag
2024/02/26 10:39:34 AM:
2024/02/26 10:39:34 AM: The following objects are masked from ‘package:base’:
2024/02/26 10:39:34 AM:
2024/02/26 10:39:34 AM: intersect, setdiff, setequal, union
2024/02/26 10:39:34 AM:
2024/02/26 10:39:35 AM: Loading required package: teal
2024/02/26 10:39:35 AM: Loading required package: teal.data
2024/02/26 10:39:35 AM: Loading required package: teal.slice
2024/02/26 10:39:35 AM: Loading required package: teal.transform
2024/02/26 10:39:35 AM:
2024/02/26 10:39:35 AM: You are using teal version 0.14.0
2024/02/26 10:39:35 AM:
2024/02/26 10:39:35 AM: Attaching package: ‘teal’
2024/02/26 10:39:35 AM:
2024/02/26 10:39:35 AM: The following objects are masked from ‘package:teal.slice’:
2024/02/26 10:39:35 AM:
2024/02/26 10:39:35 AM: as.teal_slices, teal_slices
2024/02/26 10:39:35 AM:
2024/02/26 10:39:35 AM: Loading required package: tern
2024/02/26 10:39:35 AM: Loading required package: rtables
2024/02/26 10:39:35 AM: Loading required package: formatters
2024/02/26 10:39:36 AM:
2024/02/26 10:39:36 AM: Attaching package: ‘rtables’
2024/02/26 10:39:36 AM:
2024/02/26 10:39:36 AM: The following object is masked from ‘package:utils’:
2024/02/26 10:39:36 AM:
2024/02/26 10:39:36 AM: str
2024/02/26 10:39:36 AM:
2024/02/26 10:39:36 AM: Registered S3 method overwritten by 'tern':
2024/02/26 10:39:36 AM: method from
2024/02/26 10:39:36 AM: tidy.glm broom
2024/02/26 10:39:36 AM:
2024/02/26 10:39:36 AM: Attaching package: ‘tern’
2024/02/26 10:39:36 AM:
2024/02/26 10:39:36 AM: The following object is masked from ‘package:goshawk’:
2024/02/26 10:39:36 AM:
2024/02/26 10:39:36 AM: g_lineplot
2024/02/26 10:39:36 AM:
2024/02/26 10:39:37 AM: Loading required package: ggmosaic
2024/02/26 10:39:37 AM: Loading required package: ggplot2
2024/02/26 10:39:37 AM: Loading required package: shinyTree
2024/02/26 10:40:00 AM: Warning: There was 1 warning in `mutate()`.
2024/02/26 10:40:00 AM: ℹ In argument: `AVISITCDN = case_when(...)`.
2024/02/26 10:40:00 AM: Caused by warning:
2024/02/26 10:40:00 AM: ! NAs introduced by coercion
2024/02/26 10:40:10 AM: [INFO] 2024-02-26 10:40:10.5900 pid:3512042 token:[] teal.modules.general Initializing tm_variable_browser
2024/02/26 10:40:10 AM: [INFO] 2024-02-26 10:40:10.6283 pid:3512042 token:[] teal.modules.general Initializing tm_data_table
2024/02/26 10:40:10 AM: [INFO] 2024-02-26 10:40:10.6357 pid:3512042 token:[] teal.modules.clinical Initializing tm_t_summary
2024/02/26 10:40:10 AM: [INFO] 2024-02-26 10:40:10.6488 pid:3512042 token:[] teal.modules.clinical Initializing tm_t_events_summary
2024/02/26 10:40:10 AM: [INFO] 2024-02-26 10:40:10.6683 pid:3512042 token:[] teal.modules.clinical Initializing tm_t_events
2024/02/26 10:40:10 AM: [INFO] 2024-02-26 10:40:10.6794 pid:3512042 token:[] teal.modules.clinical Initializing tm_t_events_by_grade
2024/02/26 10:40:10 AM: [INFO] 2024-02-26 10:40:10.6928 pid:3512042 token:[] teal.modules.clinical Initializing tm_t_smq
2024/02/26 10:40:10 AM: [INFO] 2024-02-26 10:40:10.7090 pid:3512042 token:[] teal.goshawk Initializing tm_g_gh_boxplot
2024/02/26 10:40:10 AM: [INFO] 2024-02-26 10:40:10.7155 pid:3512042 token:[] teal.goshawk Initializing tm_g_gh_correlationplot
2024/02/26 10:40:10 AM: [INFO] 2024-02-26 10:40:10.7218 pid:3512042 token:[] teal.goshawk Initializing tm_g_gh_density_distribution_plot
2024/02/26 10:40:10 AM: [INFO] 2024-02-26 10:40:10.7272 pid:3512042 token:[] teal.goshawk Initializing tm_g_gh_lineplot
2024/02/26 10:40:10 AM: [INFO] 2024-02-26 10:40:10.7336 pid:3512042 token:[] teal.goshawk Initializing tm_g_gh_spaghettiplot
2024/02/26 10:40:11 AM:
2024/02/26 10:40:11 AM: Listening on http://127.0.0.1:42987
2024/02/26 10:40:40 AM: Warning in length(token_data) > 0 && !is.na(token_data) :
2024/02/26 10:40:40 AM: 'length(x) = 16 > 1' in coercion to 'logical(1)'
2024/02/26 10:40:45 AM: Warning in length(token_data) > 0 && !is.na(token_data) :
2024/02/26 10:40:45 AM: 'length(x) = 16 > 1' in coercion to 'logical(1)'
2024/02/26 10:40:45 AM: module "Report previewer" server function takes no data so "datanames" will be ignored
2024/02/26 10:40:47 AM: ✔ Writing to "app-usage".
2024/02/26 10:40:47 AM: ✔ Appending 1 row to 'Data'.
2024/02/26 10:44:50 AM: [rsc-session] Received signal: interrupt
2024/02/26 10:44:50 AM: [rsc-session] Terminating subprocess with interrupt ...
2024/02/26 10:44:50 AM:
2024/02/26 10:44:50 AM:
2024/02/26 10:44:50 AM: Shiny application exiting ...
2024/02/26 10:44:50 AM: Execution halted
2024/02/26 10:44:50 AM: [rsc-session] Terminated subprocess with signal: interrupt
```

### Code of Conduct

- [X] I agree to follow this project's Code of Conduct.

### Contribution Guidelines

- [X] I agree to follow this project's Contribution Guidelines.

### Security Policy

- [X] I agree to follow this project's Security Policy.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.