leppott/BCGcalc

Shiny - ORWA - Generate Class Parameters - crashes with large number of sites

Closed this issue · 2 comments

Describe the bug
Using a file of 981 sites the Generate Class Parameters under File Builder in the ORWA Shiny app causes it to crash.

To Reproduce
Only 3 columns (SiteID, Lat, Long). All unique and valid.

Expected behavior
Should finish.

Screenshots
Error message in console
image

From Server.R
image

Add any other context about the problem here.
Takes about 13 minutes before get error message above in the Console.

Time out issue StreamCatTools function. Too much data to download.

Rather than increase timeout add code to limit size of input file, e.g., 500 rows.

Add code with Shiny Alert to prevent long wait before time out. Using 500 as cutoff.

image

image