insightsengineering / teal.gallery

A Gallery of Exploratory Web Apps used for Analyzing Clinical Trial Data
https://insightsengineering.github.io/teal.gallery/
Other
29 stars 7 forks source link

[Bug]: Deployed app crash when selecting any variable from the filter panel #125

Closed anajens closed 6 months ago

anajens commented 7 months ago

What happened?

Click on link for deployed teal app (e.g. https://genentech.shinyapps.io/nest_basic-teal_stable/ ) --> Select filter panel variable (e.g. Iris Sepal.Length) -->
app crashes

image

Locally the error in the console is:

Warning: Error in readLines: 'con' is not a connection
  1: runApp

Relevant log output

No response

Code of Conduct

Contribution Guidelines

Security Policy

pawelru commented 7 months ago

@donyunardi this looks very similar to what you have reported on slack.

pawelru commented 7 months ago

OK checked this and confirm the root cause

On stable we have:

  1. teal.slice@0.4.0 that has the following (source):

    sass_file <- bslib::bs_theme()[["layers"]][[2]][["defaults"]][[1]]
    sass_file <- attr(sass_file, "sass_file_path")
    variables_file <- readLines(sass_file)
  2. bslib@0.6.1 (source)

In combination we have a bug:

> utils::packageVersion("bslib")
[1] ‘0.6.1’
> utils::packageVersion("teal.slice")
[1] ‘0.4.0’
> sass_file <- bslib::bs_theme()[["layers"]][[2]][["defaults"]][[1]]
> sass_file <- attr(sass_file, "sass_file_path")
> sass_file
NULL
> variables_file <- readLines(sass_file)
Error in readLines(sass_file) : 'con' is not a connection

This have been already fixed on main -> link so we just need to wait for teal.slice release to have the fix in stable channel

donyunardi commented 7 months ago

Thanks @pawelru, yes, we fixed this in main so just need to wait for release.

vedhav commented 6 months ago

Closing this because teal.slice release fixed this.