Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignoring optional dependencies #582

Closed
beckerbenj opened this issue Jun 28, 2022 · 6 comments
Closed

Ignoring optional dependencies #582

beckerbenj opened this issue Jun 28, 2022 · 6 comments
Labels
bug an unexpected problem or unintended behavior

Comments

@beckerbenj
Copy link

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 beckerbenj added the bug an unexpected problem or unintended behavior label Jun 28, 2022
@gaborcsardi
Copy link
Member

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

@beckerbenj
Copy link
Author

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.

@damondpham
Copy link

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

@damondpham
Copy link

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.

@gaborcsardi
Copy link
Member

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

@github-actions
Copy link

github-actions bot commented Nov 4, 2022

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 github-actions bot locked as resolved and limited conversation to collaborators Nov 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

3 participants