-
-
Notifications
You must be signed in to change notification settings - Fork 50
Open
Description
Before filing a bug
- I have installed the latest dev version of {precommit} with
remotes::install_github('lorenzwalthert/precommit') - I have installed the latest hook revisions (update with
precommit::autoupdate()) - I have installed the latest release of the upstream Python framework pre-comit as described under the update instructions.
My precommit environment doesn't seem to have the R packages it requires to run styler. Here's my ouput on the first commit after installing and setting up the precommit package and the pre-commit backend framework.
I've been banging my head against this all day and can't seem to figure out what's going wrong! It's very possible I have a misconception about how something is working, or not as the case may be! So I'd appreciate some pointers as to what might be going wrong and where to poke around under the hood if needs be!
[INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
[INFO] Installing environment for https://github.com/pre-commit-ci/pre-commit-ci-config.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
style-files..............................................................Failed
- hook id: style-files
- exit code: 1
WARNING: ignoring environment value of R_HOME
- One or more packages recorded in the lockfile are not installed.
- Use `renv::status()` for more details.
- One or more packages recorded in the lockfile are not installed.
- Use `renv::status()` for more details.
Error in packageVersion("precommit") :
there is no package called ‘precommit’
Execution halted
spell-check..........................................(no files to check)Skippedlintr....................................................................Failed
- hook id: lintr
- exit code: 1
WARNING: ignoring environment value of R_HOME
- One or more packages recorded in the lockfile are not installed.
- Use `renv::status()` for more details.
- One or more packages recorded in the lockfile are not installed.
- Use `renv::status()` for more details.
Error in loadNamespace(x) : there is no package called ‘precommit’
Calls: loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted
readme-rmd-rendered..................................(no files to check)Skippedparsable-R...............................................................Passedno-browser-statement.....................................................Passedno-debug-statement.......................................................Passedcheck for added large files..............................................Passedfix end of files.........................................................Passed
check pre-commit.ci config...........................(no files to check)Skipped
Don't commit common R artifacts......................(no files to check)SkippedI installed things along the following lines:
install.packages(c("remotes", "reticulate", "styler"))
remotes::install_github("lorenzwalthert/precommit")
reticulate::install_miniconda()
precommit::install_precommit()
precommit::use_precommit()pre-commit installReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels