[Rd] options(keep.source = TRUE) -- also for "library(.)" ?
Martin Maechler
Martin Maechler <maechler@stat.math.ethz.ch>
Thu, 27 Apr 2000 14:17:54 +0200 (CEST)
help(options)
contains
keep.source: When `TRUE', the default, the source code for functions
loaded by is stored in their `"source"' attribute, allowing
comments to be kept in the right places.
This does not apply to functions loaded by `library'.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
and R behaves as documented, i.e., currently
all functions in package:base and all "interactively defined" functions
keep their source (__including__ comments) with them, whereas all the other
functions do not.
As I tend to create small own packages more and more, and ask others to use
them, users of the packages (and myself) are suffering increasingly from
function definitions with lost comments.
Can we [those of us who know how sys.source() works...]
think of changing this? As it was possible for the base package, it must
be doable for the others as well....
Martin
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._