Skip to content

Lint .Call() of another package's routines #2939

@MichaelChirico

Description

@MichaelChirico

R CMD check enforces this:

.Call("routine", PACKAGE = "somebody.elses")

E.g.

* checking foreign function calls ... NOTE
Foreign function call to a different package:
  .Call("readProtoFiles_cpp", ..., PACKAGE = "RProtoBuf")
See chapter 'System and foreign language interfaces' in the 'Writing R Extensions' manual.

This is basically the same as restricting ::: -- if {lintr} is aware of the current package's name, we could enforce this during development to avoid waiting for R CMD check.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions