forked from lorenzwalthert/precommit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
API
23 lines (21 loc) · 1.19 KB
/
API
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# API for precommit package
## Exported functions
autoupdate(root = here::here())
diff_requires_run_roxygenize(root = here::here())
dirs_R.cache(hook_id)
install_precommit(force = FALSE)
may_require_permanent_cache(temp_cache_is_enough = FALSE)
open_config(root = here::here())
open_wordlist(root = here::here())
path_pre_commit_exec(check_if_exists = TRUE)
path_precommit_exec(check_if_exists = TRUE)
robust_purl(path)
roxygen_assert_additional_dependencies()
roxygenize_with_cache(key, dirs)
snippet_generate(snippet, open = rstudioapi::isAvailable(), root = here::here())
uninstall_precommit(scope = "repo", ask = "user", root = here::here())
update_precommit()
use_ci(ci = getOption("precommit.ci", "native"), force = FALSE, open = rstudioapi::isAvailable(), root = here::here())
use_precommit(config_source = getOption("precommit.config_source"), force = FALSE, legacy_hooks = "forbid", open = rstudioapi::isAvailable(), install_hooks = TRUE, ci = getOption("precommit.ci", "native"), autoupdate = install_hooks, root = here::here())
use_precommit_config(config_source = getOption("precommit.config_source"), force = FALSE, open = rstudioapi::isAvailable(), verbose = FALSE, root = here::here())
version_precommit()