actions
actions copied to clipboard
Ignoring optional dependencies
Describe the bug
The documentation page on setup-r-dependencies describes how to ignore specific, optional dependencies. However, when I try the suggested approach via
package=<packagename>?ignore
with the R package gurobi in Enhances, I get:
<simpleError in get_remote_types(refs): Can't parse remotes: package=gurobi>
To Reproduce I have created a minimal working package example, logs for one of the failing builds can be found here: https://github.com/beckerbenj/testCheckForceSuggests/runs/7095275132?check_suite_focus=true
Additional context If have alternatively tried setting dependencies to 'hard' as recommended in #548 , which seems to work (for most builds?): setting dependencies to hard
Sorry, the docs are off, the syntax is gurobi=?ignore
.
Thanks for the quick reply! I have tried both gurobi=?ignore
and package=gurobi=?ignore
.
However, now I get the following errors during package installation:
<subscriptOutOfBoundsError in done[[i]]: subscript out of bounds>
on Windows and Mac and
<simpleError in select_next_task(state): Internal error, no task running and cannot select new task>
on Ubuntu.
I am facing the same situation, and I see the same problem.
The issue seemed to be fixed when I list the package being ignored in the Remotes
field in the DESCRIPTION
:
Remotes:
statsmaths/glmgen/R_pkg/glmgen
The problem is, the Remotes
field cannot be used for a package that will be on CRAN.
The gurobi=?ignore
syntax seems to work fine now, at list with dev pak: https://github.com/gaborcsardi/testCheckForceSuggests/actions/runs/3287733158/workflow
This issue has been automatically locked. If you believe you have found a related problem, please file a new issue and include a link to this issue