Hi Simon --
?data indicates that the first file looked for is mydata.R, and then
mydata.RData and so on. So add a file mydata.R to your data directory that
contains R code to print a message and then loads the data. This hack
is used in Bioconductor, e.g., the Biobase package
http://bioconductor.org/packages/2.0/bioc/html/Biobase.html
to indicated that some data sets are deprecated.
Martin
simon bond <shug0131 at yahoo.co.uk> writes:
> Dear R-help,
>
> I'm building a package which will contain a data set. I was wondering
if it's possible to make a message appear on the console whenever a user
loads the data. So the console would look like
>
>>data(mydata)
> "Please do not use these data in any publication without permission of
the authors"
>>
>
> Would this message be within the terms of GPL?
>
> Looking at the ?data page, it seems "packageIQR" might be the
way forward, but I couldn't find any further information on this.
>
>
> Thanks
>
>
> Simon Bond.
>
>
> ___________________________________________________________
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at stat.math.ethz.ch 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.
--
Martin Morgan
Bioconductor / Computational Biology
http://bioconductor.org