This error appears before receiving the spat out_data message.
I believe that the code below (taken from line 1426 of ccvi_app.R) initiates this error as spat_res() is missing. However, this error isn't handled, causing the app to crash.
Need to add the handle the error. Maybe by wrapping in an if statement? Or adding try()?
if(is.null(req(spat_res())) || is.null(req(clim_readme())) || is.null(req(!is.null(file_pths())))
actually req is supposed to prevent the rest of that section of code from running unless spat_res is available. But it doesn't seem to be working correctly so I will look into that.
Running calculate index (in the index results tab) without having input anything will result in the following error and cause the app to grey out:
This error appears before receiving the
spat out_data
message.I believe that the code below (taken from line 1426 of ccvi_app.R) initiates this error as
spat_res()
is missing. However, this error isn't handled, causing the app to crash.Need to add the handle the error. Maybe by wrapping in an if statement? Or adding
try()
?if(is.null(req(spat_res())) || is.null(req(clim_readme())) || is.null(req(!is.null(file_pths())))