gowachin / matreex

LESSEM internal package for simulation of forest dynamic depending on climatic variables
https://gowachin.github.io/matreex/
Other
3 stars 0 forks source link

Issue when running sim_deter_mosaic() in a targets pipeline #23

Open jbarrere3 opened 10 months ago

jbarrere3 commented 10 months ago

The function sim_deter_mosaic(), located in the script dev_end.R, is yielding an error when used inside a targets pipeline (cannot coerce S4 to a double). Outside of the targets pipeline, the code is working fine.

After doing some debugging, it seems like the error comes from save_step_env() function, with a problem in the format in which DGE matrices are saved.