This installs pre-commit in the conda environment r-precommit. It will be available to use across different git repositories.

install_precommit(force = FALSE)

Arguments

force

Whether or not to force a re-installation.

Value

The path to the pre-commit executable (invisibly).

Examples

if (FALSE) { install_precommit() }