[Rd] options(keep.source = TRUE) -- also for "library(.)" ?

Martin Maechler Martin Maechler <maechler@stat.math.ethz.ch>
Thu, 27 Apr 2000 15:04:03 +0200 (CEST)

>>>>> "PD" == Peter Dalgaard BSA <p.dalgaard@biostat.ku.dk> writes:

    PD> Martin Maechler <maechler@stat.math.ethz.ch> writes:
    >> 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....

    PD> Martin, surely you could have figured out to remove these two lines
    PD> from sys.source:

    PD>     oop <- options(keep.source = FALSE)
    PD>      on.exit(options(oop))

[blush... *BLUSH* ...
 I didn't look at sys.source(); 
 just knew that parts of it used to look rather "magical" to me ..

Of course we now could even make 
   keep.source = getOption("keep.source") 
an argument to library(), being propagated to sys.source(..).

    PD> The real question is whether we want to have a different mechanism
    PD> for controlling whether keep.source is set or not. 

    PD> Originally it was FALSE for the base library to save space, and
    PD> according the same setting was used for other libraries since some
    PD> of them are rather large, but later it got flipped to TRUE for
    PD> base,
(yes, I'm still wondering...)
    PD> and then there is little point in setting it FALSE for packages. 
    PD> Question is whether anyone would want the old behaviour
    PD> back to get more space for analyses?

would be nice if it *was* configurable for base as well;
possibly both via cmd line option
	 (something like --keepsource / --no-keepsource )
and a setting in Rprofile..

>From grepping through the source code, I don't see how it was turned off
for base...


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