fairagro/M4.4_UC6_ARC

uc6_csmTools: Use renv for package management

Closed this issue · 1 comments

Using proper package managment tools like renv are the only way to have reproducible code if depending on many packages.

Using renv turned out crucial for reproducibility, as the rdwd package is not pushed to CRAN for patchlevel updates but updates it's data nonetheless. That bug got me for a few hour which was just because of CRAN not installing the latest package.

Furthermore DSSATs R package does not work in the latest version because of writing not working WTH files...
The devil is in the details: The new version starts Weather files with $ instead of * - the pipeline only works with *. As you may imagine this was a lot of fun to find out 🤯

I created a new branch in BLs Repo called feature/package_management to add proper package management tooling, namely renv. This turned out crucial for reproducibility, as the rdwd package is not pushed to CRAN for patchlevel updates but updates it's data nonetheless. That bug got me for a few hour which was just because of CRAN not installing the latest package. Furthermore DSSATs R packages does not work in the latest version because of writing not working WTH files...
Installation can not be done by renv::restore() after clone or pull.