jaskozi
jaskozi
**Before filing a bug** - [X] I have installed the latest dev version of {precommit} with `remotes::install_github('lorenzwalthert/precommit')` - [X] I have installed the latest hook revisions (update with `precommit::autoupdate()`) -...
Yes it is, because the actual path is `C:\Program Files\R\R-4.1.0\bin`, and I don't understand why is it shortening
A small update: The problem is only present if I use this repo. If I remove it from the hooks, I can use precommit without problems. Hopefully this helps.
> What is *this repo*? Do you mean if you put `github.com/lorenzwalthert/precommit` into your `.pre-commit-config.yaml`? > Yes exactly. And I am using renv.
> From inside RStudio? Yes, from inside RStudio.
> Can you try outside of RStudio `$ git commit ...`? Same error.
> If that works, we know that your env variable `R_HOME` is wrongly set. I've set it, re-installed everything, still not working
Yes, the error message is still the same when I set R_HOME, as well when I unset it. Also, in R, global options, R version, I have selected the path...
Thank you for the information, unfortunately, after updating to v2.21.0 (and also clearing cache, re-installing, trying in different projects) now when I want to include the R pre-commit repo in...