actions icon indicating copy to clipboard operation
actions copied to clipboard

Ignoring optional dependencies

Open beckerbenj opened this issue 2 years ago • 4 comments

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

beckerbenj avatar Jun 28 '22 15:06 beckerbenj

Sorry, the docs are off, the syntax is gurobi=?ignore.

gaborcsardi avatar Jun 28 '22 19:06 gaborcsardi

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.

beckerbenj avatar Jun 29 '22 09:06 beckerbenj

I am facing the same situation, and I see the same problem.

damondpham avatar Jun 30 '22 02:06 damondpham

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.

damondpham avatar Jun 30 '22 06:06 damondpham

The gurobi=?ignore syntax seems to work fine now, at list with dev pak: https://github.com/gaborcsardi/testCheckForceSuggests/actions/runs/3287733158/workflow

gaborcsardi avatar Oct 20 '22 07:10 gaborcsardi

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

github-actions[bot] avatar Nov 04 '22 13:11 github-actions[bot]