Skip to content

{precommit} can't be used when a {renv} is already present in repo #342

@smingerson

Description

@smingerson

Similar to #316, I'm having trouble. I recently updated from 0.1.3 to 0.2.0, and I can't get anything working again. I followed the updating instructions which failed, and then tried to remove everything and try with a fresh installation. It doesn't seems to have something to do with the fact I use renv -- I tried deactivating it and still have the same issues.

I'm on Windows 10 with R 4.1.1.

style-files..............................................................Failed
- hook id: style-files
- exit code: 1

Warning: Setting LC_COLLATE=en_US.UTF-8 failed
Warning: Setting LC_CTYPE=en_US.UTF-8 failed
Warning: Setting LC_MONETARY=en_US.UTF-8 failed
Warning: Setting LC_TIME=en_US.UTF-8 failed
Error in packageVersion("precommit") : 
  there is no package called 'precommit'
Execution halted
spell-check..............................................................Failed
- hook id: spell-check
- exit code: 1

Warning: Setting LC_COLLATE=en_US.UTF-8 failed
Warning: Setting LC_CTYPE=en_US.UTF-8 failed
Warning: Setting LC_MONETARY=en_US.UTF-8 failed
Warning: Setting LC_TIME=en_US.UTF-8 failed
Error in loadNamespace(x) : there is no package called 'docopt'
Calls: loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted
lintr....................................................................Failed
- hook id: lintr
- exit code: 1

Warning: Setting LC_COLLATE=en_US.UTF-8 failed
Warning: Setting LC_CTYPE=en_US.UTF-8 failed
Warning: Setting LC_MONETARY=en_US.UTF-8 failed
Warning: Setting LC_TIME=en_US.UTF-8 failed
Error in loadNamespace(x) : there is no package called 'docopt'
Calls: loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted

readme-rmd-rendered..................................(no files to check)Skippedparsable-R...............................................................Failed
- hook id: parsable-R
- exit code: 1

Warning: Setting LC_COLLATE=en_US.UTF-8 failed
Warning: Setting LC_CTYPE=en_US.UTF-8 failed
Warning: Setting LC_MONETARY=en_US.UTF-8 failed
Warning: Setting LC_TIME=en_US.UTF-8 failed
Error in loadNamespace(x) : there is no package called 'knitr'
Calls: lapply ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted
no-browser-statement.....................................................PassedCheck for added large files..............................................PassedFix End of Files.........................................................Passed
Don't commit common R artifacts......................(no files to check)Skipped
[INFO] Restored changes from C:\Users\Sean.Ingerson\.cache\pre-commit\patch1638996953-4064.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions