[R] broken libraries

Thomas Lumley thomas at biostat.washington.edu
Tue Sep 7 17:38:26 CEST 1999

On Tue, 7 Sep 1999, Jim Lindsey wrote:

> Due to several changes in R0.65.0, virtually all of the functions in
> my libraries (v0.5) are broken. For example, for some strange reason,
> functions now have a character copy of themselves as an attribute,
> conflicting with the attributes I have on my created (environment
> dependent) functions.

This is to hold the comments in the right place. There have been
complaints for a long time that comments can drift badly in, for example,
if() statements. It's mentioned in the NEWS file, but not, unfortunately,
documented in help(options).

Packages loaded by the library() command do not have this
attribute present. You can stop it being added in closure-generating
functions by using

There is an example of this in the library() function.

Thomas Lumley
Assistant Professor, Biostatistics
University of Washington, Seattle

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