USEPA / FrEDI

FrEDI estimates annual physical and economic impacts from climate change to the U.S., through the 21st century
https://usepa.github.io/FrEDI
Other
11 stars 5 forks source link

SV Roads and HTF calling error #136

Closed heaston-indecon closed 7 months ago

heaston-indecon commented 7 months ago

In line 186 of utils_sv fun_i is NA which is not caught by the is.null() check. Therefore, fun_i is still called even though it is NA.

heaston-indecon commented 7 months ago

Fixed by adding an "or is na()" catch into the is.null check on line 198 of FrEDI SV: has_fun_i <- !(fun_i |> is.null() | fun_i %>% is.na())