Remove pre-commit from a repo or from your system.

uninstall_precommit(scope = "repo", ask = "user", root = here::here())

Arguments

scope

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.

ask

Either "user", "repo" or "none" to determine in which case a prompt should show up to let the user confirm his action.

root

The path to the root directory of your project.

Value

NULL (invisibly). The function is called for its side effects.

See also

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

Examples

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