[R] Display warning when embedded data file is loaded

Hintzen, Niels Niels.Hintzen at wur.nl
Mon Jan 9 09:38:25 CET 2012


Dear all,

I didn't manage to get any new insights on this, anyone from the list suggestions?

Best regards,

Niels Hintzen

-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of Hintzen, Niels
Sent: maandag, januari 02, 2012 10:42
To: r-help at r-project.org
Subject: [R] Display warning when embedded data file is loaded

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

______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list