[R] Display warning when embedded data file is loaded

Hintzen, Niels Niels.Hintzen at wur.nl
Mon Jan 2 10:42:04 CET 2012


Dear all,

I would like to show a warning when a data file, that is embedded in the package, is loaded. I have so far not been able to find any manual or mailing list going on about that.

In code example:

library("myPackage")
data("myData") 
 # Now I want a warning containing info about this loaded 'myData' file

It would be great if someone could indicate if this is at all possible, and if so, how to embed it (or where I can read how to do it).

Many thanks in advance,

Niels



More information about the R-help mailing list