insightsengineering / insightsengineering/teal.gallery

[Bug]: can't run exploratory app

Open
#208 6 comments 0 reactions 0 assignees View on GitHub
bug core
Dominant language
R
Stars
40
Forks
13
Avg merge
1d 19h
Merged PRs (30d)
2

Description

### What happened?

I got `qenv` error when performing `restore_and_run("exploratory")`.:

Image

Image

However, I was able to run the `app.R` locally, so I think the issue is with package dependencies version.

Relevant log output

```r
R version 4.4.3 (2025-02-28) -- "Trophy Case"
Copyright (C) 2025 The R Foundation for Statistical Computing
Platform: aarch64-apple-darwin20

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> source("https://raw.github.com/insightsengineering/teal.gallery/main/_internal/utils/sourceme.R")
> restore_and_run("exploratory")
Downloading https://github.com/insightsengineering/teal.gallery/archive/HEAD.tar.gz
- Updated 1 record in "/private/var/folders/wg/1pp7pk813gz3bl88r5q7tgkh0000gn/T/RtmpycdXep/shinyapp158b2238b0134/teal.gallery-ebdacd6e87d7f70d95fefee1848be46246b2a4f5/exploratory/renv.lock".
# Bootstrapping renv 1.1.4 ---------------------------------------------------
- Downloading renv ... OK
- Installing renv ... OK

- Project '/private/var/folders/wg/1pp7pk813gz3bl88r5q7tgkh0000gn/T/RtmpycdXep/shinyapp158b2238b0134/teal.gallery-ebdacd6e87d7f70d95fefee1848be46246b2a4f5/exploratory' loaded. [renv 1.1.4]
- One or more packages recorded in the lockfile are not installed.
- Use `renv::status()` for more details.
The following package(s) will be updated:

# CRAN -----------------------------------------------------------------------
- MASS [7.3-64 -> 7.3-65]
- abind [* -> 1.4-8]
- askpass [* -> 1.2.1]
- backports [* -> 1.5.0]
- base64enc [* -> 0.1-3]
- cachem [* -> 1.1.0]
- car [* -> 3.1-3]
- carData [* -> 3.0-5]
- checkmate [* -> 2.3.2]
- commonmark [* -> 1.9.5]
- confintr [* -> 1.0.2]
- crayon [* -> 1.5.3]
- crosstalk [* -> 1.2.1]
- Deriv [* -> 4.1.6]
- digest [* -> 0.6.37]
- dplyr [* -> 1.1.4]
- DT [* -> 0.33]
- estimability [* -> 1.5.1]
- evaluate [* -> 1.0.3]
- farver [* -> 2.1.2]
- fontawesome [* -> 0.5.3]
- forcats [* -> 1.0.0]
- Formula [* -> 1.2-5]
- ggExtra [* -> 0.10.1]
- ggmosaic [* -> 0.3.3]
- ggpmisc [* -> 0.6.1]
- ggpp [* -> 0.5.8-1]
- ggrepel [* -> 0.9.6]
- glue [* -> 1.8.0]
- goftest [* -> 1.2-3]
- gridExtra [* -> 2.3]
- gtable [* -> 0.3.6]
- highr [* -> 0.11]
- htmltools [* -> 0.5.8.1]
- httr [* -> 1.4.7]
- isoband [* -> 0.2.7]
- jquerylib [* -> 0.1.4]
- knitr [* -> 1.50]
- labeling [* -> 0.4.3]
- lazyeval [* -> 0.2.2]
- lmodel2 [* -> 1.7-4]
- logger [* -> 0.4.0]
- lubridate [* -> 1.9.4]
- magrittr [* -> 2.0.3]
- memoise [* -> 2.0.1]
- microbenchmark [* -> 1.5.0]
- mime [* -> 0.13]
- minqa [* -> 1.2.8]
- multcomp [* -> 1.4-28]
- multcompView [* -> 0.1-10]
- mvtnorm [* -> 1.3-3]
- nloptr [* -> 2.2.1]
- numDeriv [* -> 2016.8-1.1]
- pkgconfig [* -> 2.0.3]
- polynom [* -> 1.4-1]
- productplots [* -> 0.1.1]
- promises [* -> 1.3.2]
- quantreg [* -> 6.1]
- R.methodsS3 [* -> 1.8.2]
- R.utils [* -> 2.13.0]
- random.cdisc.data [* -> 0.3.16]
- rappdirs [* -> 0.3.3]
- rbibutils [* -> 2.3]
- RColorBrewer [* -> 1.1-3]
- Rcpp [* -> 1.0.14]
- RcppEigen [* -> 0.3.4.0.2]
- rmarkdown [* -> 2.29]
- sandwich [* -> 3.1-1]
- shiny [* -> 1.10.0]
- shinycssloaders [* -> 1.1.0]
- shinyjs [* -> 2.1.0]
- sourcetools [* -> 0.1.7-1]
- sparkline [* -> 2.0]
- SparseM [* -> 1.84-2]
- splus2R [* -> 1.3-5]
- stringr [* -> 1.5.1]
- styler [* -> 1.10.3]
- sys [* -> 3.4.3]
- teal [* -> 0.16.0]
- teal.reporter [* -> 0.4.0]
- TH.data [* -> 1.1-3]
- tibble [* -> 3.2.1]
- tidyselect [* -> 1.2.1]
- uuid [* -> 1.2-1]
- viridisLite [* -> 0.4.2]
- withr [* -> 3.0.2]
- xml2 [* -> 1.3.8]
- xtable [* -> 1.8-4]
- xts [* -> 0.14.1]
- yaml [* -> 2.3.10]

# GitHub ---------------------------------------------------------------------
- nestcolor [* -> insightsengineering/nestcolor@v0.1.3]

# RSPM -----------------------------------------------------------------------
- Matrix [repo: CRAN -> RSPM; ver: 1.7-2 -> 1.7-3]
- nlme [repo: CRAN -> RSPM; ver: 3.1-167 -> 3.1-168]
- broom [* -> 1.0.8]
- bslib [* -> 0.9.0]
- cli [* -> 3.6.5]
- colourpicker [* -> 1.3.0]
- cowplot [* -> 1.1.3]
- cpp11 [* -> 0.5.2]
- curl [* -> 6.2.2]
- data.table [* -> 1.17.2]
- doBy [* -> 4.6.27]
- emmeans [* -> 1.11.1]
- fansi [* -> 1.0.6]
- fastmap [* -> 1.2.0]
- flextable [* -> 0.9.8]
- fontBitstreamVera [* -> 0.1.1]
- fontLiberation [* -> 0.1.0]
- fontquiver [* -> 0.2.1]
- formatters [* -> 0.5.11]
- fs [* -> 1.6.6]
- gdtools [* -> 0.4.2]
- generics [* -> 0.1.4]
- ggplot2 [* -> 3.5.2]
- htmlwidgets [* -> 1.6.4]
- httpuv [* -> 1.6.16]
- jsonlite [* -> 2.0.0]
- later [* -> 1.4.2]
- lifecycle [* -> 1.0.4]
- lme4 [* -> 1.1-37]
- MatrixModels [* -> 0.5-4]
- miniUI [* -> 0.1.2]
- modelr [* -> 0.1.11]
- officer [* -> 0.6.9]
- openssl [* -> 2.3.2]
- pbkrtest [* -> 0.5.4]
- pillar [* -> 1.10.2]
- plotly [* -> 4.10.4]
- plyr [* -> 1.8.9]
- purrr [* -> 1.0.4]
- R.cache [* -> 0.17.0]
- R.oo [* -> 1.27.1]
- R6 [* -> 2.6.1]
- ragg [* -> 1.4.0]
- Rdpack [* -> 2.6.4]
- reformulas [* -> 0.4.1]
- rlang [* -> 1.1.6]
- rlistings [* -> 0.2.11]
- rprojroot [* -> 2.0.4]
- rtables [* -> 0.6.12]
- rtables.officer [* -> 0.1.0]
- sass [* -> 0.4.10]
- scales [* -> 1.4.0]
- shinybusy [* -> 0.3.3]
- shinyTree [* -> 0.3.1]
- shinyvalidate [* -> 0.1.3]
- shinyWidgets [* -> 0.9.0]
- stringi [* -> 1.8.7]
- systemfonts [* -> 1.2.3]
- teal.code [* -> 0.6.1]
- teal.data [* -> 0.7.0]
- teal.logger [* -> 0.3.2]
- teal.modules.general [* -> 0.4.1]
- teal.slice [* -> 0.6.0]
- teal.transform [* -> 0.6.0]
- teal.widgets [* -> 0.4.3]
- tern [* -> 0.9.8]
- textshaping [* -> 1.0.1]
- tidyr [* -> 1.3.1]
- timechange [* -> 0.3.0]
- tinytex [* -> 0.57]
- utf8 [* -> 1.2.5]
- vctrs [* -> 0.6.5]
- xfun [* -> 0.52]
- zip [* -> 2.3.3]
- zoo [* -> 1.8-14]

# Installing packages --------------------------------------------------------
- Installing MASS ... OK [linked from cache]
- Installing Matrix ... OK [linked from cache]
- Installing nlme ... OK [linked from cache]
- Installing base64enc ... OK [linked from cache]
- Installing digest ... OK [linked from cache]
- Installing fastmap ... OK [linked from cache]
- Installing rlang ... OK [linked from cache]
- Installing htmltools ... OK [linked from cache]
- Installing jsonlite ... OK [linked from cache]
- Installing evaluate ... OK [linked from cache]
- Installing xfun ... OK [linked from cache]
- Installing highr ... OK [linked from cache]
- Installing yaml ... OK [linked from cache]
- Installing knitr ... OK [linked from cache]
- Installing cachem ... OK [linked from cache]
- Installing jquerylib ... OK [linked from cache]
- Installing cli ... OK [linked from cache]
- Installing glue ... OK [linked from cache]
- Installing lifecycle ... OK [linked from cache]
- Installing memoise ... OK [linked from cache]
- Installing mime ... OK [linked from cache]
- Installing fs ... OK [linked from cache]
- Installing R6 ... OK [linked from cache]
- Installing rappdirs ... OK [linked from cache]
- Installing sass ... OK [linked from cache]
- Installing bslib ... OK [linked from cache]
- Installing fontawesome ... OK [linked from cache]
- Installing tinytex ... OK [linked from cache]
- Installing rmarkdown ... OK [linked from cache]
- Installing htmlwidgets ... OK [linked from cache]
- Installing Rcpp ... OK [linked from cache]
- Installing later ... OK [linked from cache]
- Installing magrittr ... OK [linked from cache]
- Installing promises ... OK [linked from cache]
- Installing httpuv ... OK [linked from cache]
- Installing lazyeval ... OK [linked from cache]
- Installing crosstalk ... OK [linked from cache]
- Installing DT ... OK [linked from cache]
- Installing Deriv ... OK [linked from cache]
- Installing Formula ... OK [linked from cache]
- Installing MatrixModels ... OK [linked from cache]
- Installing R.methodsS3 ... OK [linked from cache]
- Installing R.oo ... OK [linked from cache]
- Installing R.utils ... OK [linked from cache]
- Installing R.cache ... OK [linked from cache]
- Installing RColorBrewer ... OK [linked from cache]
- Installing RcppEigen ... OK [linked from cache]
- Installing rbibutils ... OK [linked from cache]
- Installing Rdpack ... OK [linked from cache]
- Installing SparseM ... OK [linked from cache]
- Installing TH.data ... OK [linked from cache]
- Installing abind ... OK [linked from cache]
- Installing sys ... OK [linked from cache]
- Installing askpass ... OK [linked from cache]
- Installing backports ... OK [linked from cache]
- Installing generics ... OK [linked from cache]
- Installing utf8 ... OK [linked from cache]
- Installing vctrs ... OK [linked from cache]
- Installing pillar ... OK [linked from cache]
- Installing fansi ... OK [linked from cache]
- Installing pkgconfig ... OK [linked from cache]
- Installing tibble ... OK [linked from cache]
- Installing withr ... OK [linked from cache]
- Installing tidyselect ... OK [linked from cache]
- Installing dplyr ... OK [linked from cache]
- Installing purrr ... OK [linked from cache]
- Installing stringi ... OK [linked from cache]
- Installing stringr ... OK [linked from cache]
- Installing cpp11 ... OK [linked from cache]
- Installing tidyr ... OK [linked from cache]
- Installing broom ... OK [linked from cache]
- Installing numDeriv ... OK [linked from cache]
- Installing gtable ... OK [linked from cache]
- Installing isoband ... OK [linked from cache]
- Installing farver ... OK [linked from cache]
- Installing labeling ... OK [linked from cache]
- Installing viridisLite ... OK [linked from cache]
- Installing scales ... OK [linked from cache]
- Installing ggplot2 ... OK [linked from cache]
- Installing cowplot ... OK [linked from cache]
- Installing modelr ... OK [linked from cache]
- Installing microbenchmark ... OK [linked from cache]
- Installing doBy ... OK [linked from cache]
- Installing minqa ... OK [linked from cache]
- Installing nloptr ... OK [linked from cache]
- Installing reformulas ... OK [linked from cache]
- Installing lme4 ... OK [linked from cache]
- Installing pbkrtest ... OK [linked from cache]
- Installing quantreg ... OK [linked from cache]
- Installing carData ... OK [linked from cache]
- Installing car ... OK [linked from cache]
- Installing checkmate ... OK [linked from cache]
- Installing xtable ... OK [linked from cache]
- Installing sourcetools ... OK [linked from cache]
- Installing crayon ... OK [linked from cache]
- Installing commonmark ... OK [linked from cache]
- Installing shiny ... OK [linked from cache]
- Installing miniUI ... OK [linked from cache]
- Installing shinyjs ... OK [linked from cache]
- Installing colourpicker ... OK [linked from cache]
- Installing confintr ... OK [linked from cache]
- Installing curl ... OK [linked from cache]
- Installing data.table ... OK [linked from cache]
- Installing estimability ... OK [linked from cache]
- Installing mvtnorm ... OK [linked from cache]
- Installing emmeans ... OK [linked from cache]
- Installing fontBitstreamVera ... OK [linked from cache]
- Installing fontLiberation ... OK [linked from cache]
- Installing fontquiver ... OK [linked from cache]
- Installing systemfonts ... OK [linked from cache]
- Installing gdtools ... OK [linked from cache]
- Installing openssl ... OK [linked from cache]
- Installing textshaping ... OK [linked from cache]
- Installing ragg ... OK [linked from cache]
- Installing uuid ... OK [linked from cache]
- Installing xml2 ... OK [linked from cache]
- Installing zip ... OK [linked from cache]
- Installing officer ... OK [linked from cache]
- Installing flextable ... OK [linked from cache]
- Installing forcats ... OK [linked from cache]
- Installing formatters ... OK [linked from cache]
- Installing ggExtra ... OK [linked from cache]
- Installing plyr ... OK [linked from cache]
- Installing productplots ... OK [linked from cache]
- Installing httr ... OK [linked from cache]
- Installing plotly ... OK [linked from cache]
- Installing ggrepel ... OK [linked from cache]
- Installing ggmosaic ... OK [linked from cache]
- Installing polynom ... OK [linked from cache]
- Installing lmodel2 ... OK [linked from cache]
- Installing splus2R ... OK [linked from cache]
- Installing zoo ... OK [linked from cache]
- Installing sandwich ... OK [linked from cache]
- Installing multcomp ... OK [linked from cache]
- Installing multcompView ... OK [linked from cache]
- Installing timechange ... OK [linked from cache]
- Installing lubridate ... OK [linked from cache]
- Installing gridExtra ... OK [linked from cache]
- Installing xts ... OK [linked from cache]
- Installing ggpp ... OK [linked from cache]
- Installing ggpmisc ... OK [linked from cache]
- Installing goftest ... OK [linked from cache]
- Installing logger ... OK [linked from cache]
- Installing nestcolor ... OK [linked from cache]
- Installing random.cdisc.data ... OK [linked from cache]
- Installing rlistings ... OK [linked from cache]
- Installing rprojroot ... OK [linked from cache]
- Installing rtables ... OK [linked from cache]
- Installing rtables.officer ... OK [linked from cache]
- Installing shinyTree ... OK [linked from cache]
- Installing shinyWidgets ... OK [linked from cache]
- Installing shinybusy ... OK [linked from cache]
- Installing shinycssloaders ... OK [linked from cache]
- Installing shinyvalidate ... OK [linked from cache]
- Installing sparkline ... OK [linked from cache]
- Installing styler ... OK [linked from cache]
- Installing teal.code ... OK [linked from cache]
- Installing teal.logger ... OK [linked from cache]
- Installing teal.reporter ... OK [linked from cache]
- Installing teal.widgets ... OK [linked from cache]
- Installing teal.data ... OK [linked from cache]
- Installing teal.slice ... OK [linked from cache]
- Installing teal ... OK [linked from cache]
- Installing tern ... OK [linked from cache]
- Installing teal.transform ... OK [linked from cache]
- Installing teal.modules.general ... OK [linked from cache]

The following loaded package(s) have been updated:
- rlang
- cli
- mime
- R6
- Rcpp
- later
- httpuv
Restart your R session to use the new versions.

Loading required package: shiny
Loading required package: ggmosaic
Loading required package: ggplot2
Loading required package: teal
Loading required package: teal.data
Loading required package: teal.code
Loading required package: teal.slice
Registered S3 method overwritten by 'teal':
method from
c.teal_slices teal.slice

You are using teal version 0.16.0

Attaching package: ‘teal’

The following objects are masked from ‘package:teal.slice’:

as.teal_slices, teal_slices

Loading required package: teal.transform
Error in UseMethod("join_keys<-", x) :
no applicable method for 'join_keys<-' applied to an object of class "c('qenv.error', 'try-error', 'simpleError', 'error', 'condition')"
```

Contributor guide

Open the contributing guide

Research direction

Reproduce the failure by running source("https://raw.github.com/insightsengineering/teal.gallery/main/_internal/utils/sourceme.R") and restore_and_run("exploratory"). Inspect exploratory/renv.lock and the dependency setup used by _internal/utils/sourceme.R, then compare the restore result with running app.R locally. Done means the exploratory app starts successfully through restore_and_run without the reported qenv error.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.