Skip to content

Issues when using package external data as internal #64

@GitHunter0

Description

@GitHunter0

In R packages, it is possible to use external data as internal data (i.e. use data exported by my package in my own package functions). This can be done by this syntax my_package::my_external_data (see link below):
https://coolbutuseless.github.io/2018/12/10/r-packages-internal-and-external-data/

However, in doing that, sinew interprets that my_package is a third-party package, then adds it on DESCRIPTION "Imports" and on Roxygen comments (@Importfrom my_package my_external_data), which leads to circular references and errors from CMD Check.

The solution I believe is to simply program to add nothing when the name of the package is the same of the package you are creating.

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions