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.
The function
sim_deter_mosaic()
, located in the scriptdev_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.