gesistsa / rio

🐟 A Swiss-Army Knife for Data I/O
http://gesistsa.github.io/rio/
600 stars 76 forks source link

Don't nudge the users to install all suggested packages #453

Closed chainsawriot closed 2 weeks ago

chainsawriot commented 1 month ago

This startup message

https://github.com/gesistsa/rio/blob/447ea1b9b2f50761f8a646d4adb95e2a270175c0/R/onLoad.R#L5

seems to suggest that one needs to install suggested packages in order to use the package; therefore #387 #452

One improvement is to list out all the unsupported file formats and the suggested packages.

A message like "If you need to use any file format list above, please install the suggested package individually; or install all of them with install_formats()"

chainsawriot commented 1 month ago

Also this line in the README

https://github.com/gesistsa/rio/blob/447ea1b9b2f50761f8a646d4adb95e2a270175c0/README.Rmd#L84

chainsawriot commented 1 month ago

A better way would be to have a function to check for the format support. An exported version of uninstalled_formats.

The loading message could be: "Some optional R packages were not installed and therefore some file formats are not supported. Check file support with show_supported_formats()".

And then when running this, it shows the suggestion about installing individual format or install them all.