uninstall_precommit: Uninstall pre-commit

View source: R/install.R

uninstall_precommitR Documentation

Uninstall pre-commit

Description

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

Usage

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

## Not run: 
uninstall_precommit()

## End(Not run)

precommit documentation built on July 2, 2022, 1:06 a.m.