Skip to content

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

Closed
@dtenenba

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions