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

checkmate should be in Imports or Depends, not Suggests #255

Closed
dtenenba opened this issue Oct 4, 2019 · 3 comments · Fixed by #256
Closed

checkmate should be in Imports or Depends, not Suggests #255

dtenenba opened this issue Oct 4, 2019 · 3 comments · Fixed by #256
Assignees

Comments

@dtenenba
Copy link

dtenenba commented Oct 4, 2019

Hi,

I'm working with a package that has REDCapR in its Imports field.
If I install this package with install.packages(), it does not install checkmate.
And yet, normal use of REDCapR (calling REDCapR::redcap_variables()) contains calls (via :: to functions in checkmate), which fail with errors since checkmate is not installed.

Though the R-exts manual is a bit ambiguous in places (like where it says "Namespaces accessed by the ‘::’ and ‘:::’ operators must be listed here, or in ‘Suggests’ or ‘Enhances’", it is also clear that "[t]he ‘Suggests’ field uses the same syntax as ‘Depends’ and lists packages that are not necessarily needed."

In the case I describe, the checkmate package is clearly needed so I believe this is a bug and that checkmate should be moved from Suggests to Imports.

@vortexing

@wibeasley wibeasley self-assigned this Oct 4, 2019
wibeasley added a commit that referenced this issue Oct 4, 2019
instead of just suggesting it --thanks @dtenenba

ref #255
@wibeasley
Copy link
Member

@dtenenba, I absolutely agree. I'm guessing I suggested checkmate when it was in only minor functions. And now you're right that it's in critical REDCapR functions.

Thanks for diagnosing the problem and explaining things so clearly. The code passes the tests on my local machine. Assuming Travis & AppVeyor are cool, I'll pull them into the master branch within GitHub within the hour. (i.e., run remotes::install_github(repo="OuhscBbmc/REDCapR")).

@dtenenba (or anyone else), do you have an opinion whether I should resubmit to CRAN just for this? I still remember getting Ripleyed when I resubmitted to CRAN twice within a three-month period.

wibeasley added a commit that referenced this issue Oct 4, 2019
@wibeasley wibeasley mentioned this issue Oct 5, 2019
Merged
@dtenenba
Copy link
Author

dtenenba commented Oct 5, 2019

@wibeasley I can't speak for CRAN but when I worked for Bioconductor we would not let packages in that had this problem.

If you can handle the Ripleying then I say resubmit.

@dtenenba
Copy link
Author

dtenenba commented Oct 5, 2019

And thanks for the quick fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants