Remove pre-commit from a repo or from your system.
uninstall_precommit(scope = "repo", ask = "user", root = here::here())
Either "repo" or "user". "repo" removes pre-commit from your project, but you will be able to use it in other projects. With "user", you remove the pre-commit executable in the virtual python environment r-precommit so it won't be available in any project. When you want to do the latter, you should first do the former.
Either "user", "repo" or "none" to determine in which case a prompt should show up to let the user confirm his action.
The path to the root directory of your project.
NULL
(invisibly). The function is called for its side effects.
Other executable managers:
install_precommit()
,
update_precommit()
,
version_precommit()
if (FALSE) { # \dontrun{
uninstall_precommit()
} # }