This installs pre-commit in the conda environment r-precommit. It will be available to use across different git repositories. To update, refer to update_precommit().

install_precommit(force = FALSE)

Arguments

force

Whether or not to force a re-installation.

Value

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

See also

Other executable managers: uninstall_precommit(), update_precommit(), version_precommit()

Examples

if (FALSE) { # \dontrun{
install_precommit()
} # }