Closed kaitejohnson closed 2 months ago
Stuck here:
Error in find_package_root(dir) :
Could not find R package in `.` or its parent directories.
This is basically flagging every package even if it is in the DESCRIPTION.
Seems like the root =
thing just isn't working because it seems to be scanning the whole repo (e.g. its flagging things in scratch)
Not an ideal solution but wondering if for now we should just get rid of deps-in-desc
because I think it is covered in R-cmd-check
Stuck here:
Error in find_package_root(dir) : Could not find R package in `.` or its parent directories.
This is super weird because I literally copied and pasted your .pre-commit.config.yaml
and .github/workflows/pre-commit.yaml
and it's working great
Stuck here:
Error in find_package_root(dir) : Could not find R package in `.` or its parent directories.
This is super weird because I literally copied and pasted your
.pre-commit.config.yaml
and.github/workflows/pre-commit.yaml
and it's working great
I think the issue is that repo != package, but I am not sure why specifying the `root =
@dylanhmorris My suggested way forward here is to remove the hook for deps-in-desc
from the .pre-commit-config.yaml
, which of course means they won't run locally but since they are in check-ww
and check-eval
R CMD Check
, they will be caught in CI. I will make a separate issue to figure out how to add them back into pre-commit.
@dylanhmorris My suggested way forward here is to remove the hook for deps-in-desc from the .pre-commit-config.yaml, which of course means they won't run locally but since they are in check-ww and check-eval R CMD Check, they will be caught in CI. I will make a separate issue to figure out how to add them back into pre-commit.
Seems sensible to me.
This PR closes #144