United4Surveillance / signal-detection-tool

A tool for detection of signals in infectious disease surveillance data.
Other
8 stars 0 forks source link

[BUG] Tool not working if age variable is not included in the data #317

Closed aj-thl closed 1 month ago

aj-thl commented 1 month ago

Describe the Bug

It seems that the current version of the tool crashes if age variable is not included in the data. However, since age is not a mandatory variable this should not happen.

To Reproduce

  1. Upload data without age variable
  2. Observe the errors in the Input parameters tab
  3. Also, in the console of the RStudio you should see a message: "Warning: Error in dplyr::mutate: i In argument: dplyr::across(...). Caused by error in dplyr::all_of(): ! Can't subset columns that don't exist. x Column age doesn't exist."

Expected Behavior

App does not work as it should.