[R] SUMMARY and follow up question: organizing work; dump function

Prof Brian D Ripley ripley at stats.ox.ac.uk
Fri Sep 29 10:23:37 CEST 2000


On Fri, 29 Sep 2000, RINNER Heinrich wrote:

> Thanks very much to Friedrich Leisch, Brian Ripley and Thomas Lumley for
> their useful answers.
> 
> Basically, they all suggested creation of a personal package as the easiest
> and best way to hold ones own functions. This indeed is quite easy and very
> useful.
> 
> In addition, Friedrich Leisch pointed out that he's planning to add an
> "append" argument to the dump() function.

Yes, he said so, but I also said that I though connections were a much more
general solution.

> One follow up question, though:
> It seems that any comments that may be present in a packages function file
> are invisible in R (version 1.0.0, Windows NT 4.0); e.g.
> > library(cluster)
> > page(agnes)
> > print(agnes)
> --> comments (as "#check type of input vector" in line 29 in file "cluster")
> don't show up here.
> 
> Is this behaviour intended? I mean, some potentially useful information may
> get lost this way (as an "ordinary" user, I would look at a function
> definition by page() or print(), unlikely by looking in a packages function
> file).

It is intended. Look at options(keep.source) and the keep.source argument
to library.


-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help 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-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list