lorenzwalthert / precommit

pre-commit hooks for R projects
https://lorenzwalthert.github.io/precommit/
GNU General Public License v3.0
253 stars 48 forks source link

specific package not available from MRAN - what would be the next step? #534

Closed danielinteractive closed 10 months ago

danielinteractive commented 10 months ago

Hi,

I am hitting:

Error: package 'GenomeInfoDbData' is not available
    In addition: Warning message:
    package 'GenomeInfoDbData' is not available from MRAN 

during pre-commit environment init.

What would be the recommendation?

Thanks, cheers Daniel

lorenzwalthert commented 10 months ago

There is an issue template on this repo for bugs. If you don’t follow it, it’s hard for me to provide any guidance. For your specific issue, please share at least your .pre-commit-config.yaml.

lorenzwalthert commented 10 months ago

FWIW MRAN has been discontinued and the dependency is most likely an additonal_dependeny. That probably would be most likely resolved with a $ pre-commit autoupdate or the equivalent in R (precommit::autoupdate()).

danielinteractive commented 10 months ago

Thanks @lorenzwalthert, interestingly I cannot reproduce this problem on the second system (Ubuntu), it only appeared on the Mac. Therefore closing - sorry for the noise!

lorenzwalthert commented 10 months ago

Welcome, feel free to re-open once it happens again on macOS, some issues are platform specific.