Skip to content

Better support for enhancing packages e.g. ledger #335

@chainsawriot

Description

@chainsawriot

ledger by @trevorld has support for rio, even though it is not in rio's Suggests. And of course, the code is not in this package. Currently, rio raises error with this message

xA <- gettext("Import support for the %s format is exported by the %s package. Run 'library(%s)' then try again.")

A better approach for this is to first check for installation using .check_pkg_availability. If it's available, library() that package (or test with directly using the S3 method) and then import again. If it is not available, error the same way and suggest installing that package.

It can also be documented in the Vignette as a possible way to expand rio #320 .

@trevorld if you are reading this, you can put rio in Enhances.

Metadata

Metadata

Assignees

No one assigned

    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