Learn R Programming

precommit (version 0.4.3)

path_derive_precommit_exec: Derive the path to the pre-commit executable

Description

Returns "" if search was not successful, the path otherwise.

Usage

path_derive_precommit_exec()

Arguments

Heuristic

  • First check if there is an executable on the $PATH using path_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.