Skip to content

{precommit} broken with {fs} 1.5.1 when pip3 installation method is used on macOS #329

@lorenzwalthert

Description

@lorenzwalthert

Because of r-lib/fs#325.

https://github.com/lorenzwalthert/precommit/runs/4372255023?check_suite_focus=true

Error: Error: pre-commit is not installed on your system (or we can't find it).

If you have it installed and you know where it is, please set the R option `precommit.executable` to this path so it can be 
used to perform various pre-commit commands from R. If you think this is a standard location, please open an issue on 
GitHub so we can auto-detect this location in the future and spare new users some set-up troubles.

If you don't know where the executable is stored, go back to the log output that resulted from the installation of pre-commit 
for hints. If you found it and you think it's a standard location, please open an issue on GitHub so we can auto-detect this 
location in the future and spare unexpereienced users some trouble.

In case you are totally lost with these messages, you can most likely solve the problems with just using the conda 
installation method, see https://lorenzwalthert.github.io/precommit/ for how to do this.

Edit: how to resolve this? Install the dev latest version of {precommit}:

install.packages('precommit')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions