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.
ledgerby @trevorld has support forrio, even though it is not inrio'sSuggests. And of course, the code is not in this package. Currently,rioraises error with this messagerio/R/extensions.R
Line 23 in 067a0ae
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 thenimportagain. 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
rioinEnhances.