In order to run lintr and styler (etc) before committing code, follow the instructions at the following address: https://github.com/lorenzwalthert/precommit#installation
- Check that python3 is installed and install if necessary
- Run pip install
pip3 install pre-commit --user
- Install R precommit package
install.packages("precommit")
- Run at the root of the git repository (change cwd in R)
library(precommit) precommit::use_precommit()
- Running git commit should run the various checks automatically. See the config file for all the checks. =======