[Rd] Use keep.source for function in package with lazy loading

From: Greg Snow <Greg.Snow_at_imail.org>
Date: Mon, 04 Apr 2011 13:19:42 -0600

I have a function in one of my packages that I would like to print using the original source rather than the deparse of the function. The package uses lazy loading and the help page for library (under keep.source) says that keep.source does not apply to packages that use lazy loading and that whether those functions keep the source depends on when they are installed.

This package is on R-forge and is being built there (and will eventually be used to submit the next version of the package to CRAN).

I am not sure what the help means by 'installed', I have set the options to keep the source to TRUE before calling install.package, but that does not seem to work.

Is there a way to "strongly encourage" the source to be kept for this function (or the entire package)?


Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare

R-devel_at_r-project.org mailing list
Received on Mon 04 Apr 2011 - 19:22:59 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 05 Apr 2011 - 11:40:41 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive