path_derive_precommit_exec {precommit} | R Documentation |
Derive the path to the pre-commit executable
Description
Returns "" if search was not successful, the path otherwise.
Usage
path_derive_precommit_exec()
Heuristic
First check if there is an executable on the
$PATH
usingpath_derive_precommit_exec_path()
Search os dependent for other possible locations for common installation methods.
If not, check if we can find one in a conda environment with
path_derive_precommit_exec_conda()
. Do this last as it's the slowest.
[Package precommit version 0.4.3 Index]