Pre-commit is used across CFA, yet in many places, it is used in a sort of hacky way. The reason: Renv and all the caching going around that the pre-commit/actions action can't deal with (here is an example). Having this more standardize would be nice! A couple of gotchas I've experienced:
- The R pre-commit action (here) uses renv. Currently with version R 4.4.1. If anything happens in the runner, this version breaks.
- Cacheing sort of happens with the
pre-commit/action, but only for stuff under the ~/.cache/pre-commit folder. In the case of R, it is mostly symlinks that tend to break.
Pre-commit is used across CFA, yet in many places, it is used in a sort of hacky way. The reason: Renv and all the caching going around that the
pre-commit/actionsaction can't deal with (here is an example). Having this more standardize would be nice! A couple of gotchas I've experienced:pre-commit/action, but only for stuff under the~/.cache/pre-commitfolder. In the case of R, it is mostly symlinks that tend to break.