Biogen-Inc / tidyCDISC

Demo the app here: https://bit.ly/tidyCDISC_app
https://biogen-inc.github.io/tidyCDISC/
GNU Affero General Public License v3.0
104 stars 38 forks source link

App issues with latest pkgs #202

Closed AARON-CLARK closed 1 year ago

AARON-CLARK commented 1 year ago

Test Branch

I created a new branch called latest_r_and_pkgs_20230301 if you want to test the behaviors noted below. Basically, it just updates the renv.lock file using renv::update().

Issues

I updated all packages to the latest versions and went through the checklist again (well, most of it). Here are some things I found:

(latest versions of all packages)

Used CDISC data to generate Table 18 (Overall summary of AEs):

Warning: Specifying the `id_cols` argument by position was deprecated in tidyr 1.3.0.
ℹ Please explicitly name `id_cols`, like `id_cols = AOCCFL`.

(latest versions of all packages)

Used study data. Loaded ADSL dataset. Attempted to create “Table3 Accounting of subjects”.

image

Input to asJSON(keep_vec_names=TRUE) is a named vector. In a future version of jsonlite, this option will not be supported, and named vectors will be translated into arrays instead of objects. If you want JSON object output, please use a named list instead. See ?toJSON.

This also happens if you try to generate “Table 5: Demography” and filter by ACTARM.

(latest versions of all packages)

Individual Explorer: The guide button [ ? ] (in the Filter by Patient Number box) does not work like the other guide buttons. You have to click on the solid color within the square in order for it to work. If you click on the question mark, then nothing happens.

(latest versions of all packages)

A lot more messages are getting printed to the console when the app is run:

image

(latest versions of all packages)

In the Population Explorer with CDISC data:

image

The graph generates successfully, but this error is in the Console:

Warning: Error in vectbl_as_col_location2: Can't extract column with `value_y`.
✖ Subscript `value_y` must be size 1, not 0.
  155: <Anonymous>
  154: signalCondition
  153: signal_abort
  152: cnd_signal
  151: <Anonymous>
  139: eval
  138: eval
  137: .transformer
  135: <Anonymous>
  111: plotly::ggplotly
  109: %||%
  106: modify_list
  105: config
  103: renderPlotly [C:/Users/twilson4/Documents/RProjects_laptop/tidyCDISC/R/mod_popExp.R#274]
  102: func
   99: shinyRenderWidget
   98: func
   85: renderFunc
   84: output$popExp_ui_1-plot_output
    3: runApp
    2: print.shiny.appobj
    1: <Anonymous>

(latest versions of all packages)

CDISC data, Individual Explorer, Visits tab. Click on Milestones or Adverse Events checkbox:

Warning: Unknown columns: `ATM`
Warning in ggplot2::geom_vline(data = vline_dat, ggplot2::aes(xintercept = !!INPUT_visit_var,  :
  Ignoring unknown aesthetics: text
Warning: Unknown columns: `ATM

Originally posted by @tdwils in https://github.com/Biogen-Inc/tidyCDISC/issues/172#issuecomment-1460330255

Jeff-Thompson12 commented 1 year ago

Item 2 (latest versions of all packages)

Used study data. Loaded ADSL dataset. Attempted to create “Table3 Accounting of subjects”.

image

Input to asJSON(keep_vec_names=TRUE) is a named vector. In a future version of jsonlite, this option will not be supported, and named vectors will be translated into arrays instead of objects. If you want JSON object output, please use a named list instead. See ?toJSON.

This also happens if you try to generate “Table 5: Demography” and filter by ACTARM.

This appears to be a result of using stop() instead of validate().

AARON-CLARK commented 1 year ago

Hi @tdwils, @Jeff-Thompson12, and @borgmaan: I created a new branch called latest_r_and_pkgs_20230301 if you want to test the behaviors noted below. Basically, it just updates the renv.lock file using renv::update(). I didn't update the R version though because I was too lazy to update and test right now. We should probably do that too, right?

tdwils commented 1 year ago

Item 4 (latest versions of all packages)

A lot more messages are getting printed to the console when the app is run:

image

Regarding Item 4, I think this is a change coming from shiny version 1.7.2. That version has this change:

Closed #3250:{rlang}/{tidyeval} conditions (i.e., warnings and errors) are no longer filtered from stack traces. (#3602)

It has made the stack trace more verbose. I tested this by using the lock file from the devel branch and updating only shiny to v1.7.2. The additional messages appeared in the console when an error was forced.

In run_dev.R we already have options(shiny.fullstacktrace = FALSE), but it doesn’t seem to affect these messages.

Maybe someone else can look at it so see if there is a way to go back to the less verbose version.

tdwils commented 1 year ago

Item 3 (latest versions of all packages)

Individual Explorer: The guide button [ ? ] (in the Filter by Patient Number box) does not work like the other guide buttons. You have to click on the solid color within the square in order for it to work. If you click on the question mark, then nothing happens.

This behavior happens when you run the app in the RStudio browser rather than the web browser. See #179 for another example of a difference in behavior between the two browsers.

AARON-CLARK commented 1 year ago

Closing Since separate issues created for each item above.