ProjectMOSAIC / ggformula

Provides a formula interface to 'ggplot2' graphics.
Other
39 stars 11 forks source link

Warning Message about suggested packages in tutorials #92

Closed bjcoleman closed 6 years ago

bjcoleman commented 6 years ago

The data package NHANES is a suggested package for the tutorial, and so the command learnr::run_tutorial("introduction", package = "ggformula") produces the message Error in library(NHANES) : there is no package called ‘NHANES’ when the package is not installed.

This is confusing for new users. Instead, it would be helpful to check for the packages when the tutorial is launched and produce a warning message.

nicholasjhorton commented 6 years ago

That's a great suggestion. We will investigate.

rpruim commented 6 years ago

I've decided to solve this by eliminating the hard dependency. NHANES will only be available in the exercise at the end if you have it installed on your system.

rpruim commented 6 years ago
image