[Rd] "is.qr" definition (PR#465)

J.C.Rougier@durham.ac.uk J.C.Rougier@durham.ac.uk
Wed, 1 Mar 2000 12:13:03 +0100 (MET)


Might it be possible to tighten the definition of "is.qr".  I
noticed that after I mistakenly typed

example(lm)  # make lm object named lm.D9
qr.Q(lm.D9)

which exhausted the heap memory and produced two warning
messages.  As an object of class "lm" has a "qr" component,
"is.qr" failed to detect that "lm.D9" was not a "qr" object.  The
obvious thing might be to tighten the definition of "is.qr",
perhaps

"is.qr" <-
function(x) all(c("qr", "rank", "qraux", "pivot") %in% names(x))

And may I add my congratulations to the core group.

Cheers, Jonathan.

--please do not edit the information below--

Version:
 platform = sparc-sun-solaris2.7
 arch = sparc
 os = solaris2.7
 system = sparc, solaris2.7
 status = Patched
 major = 0
 minor = 99.0
 year = 2000
 month = February
 day = 9
 language = R

Search Path:
 .GlobalEnv, package:mva, package:patches, Autoloads, package:base


Jonathan Rougier                       Science Laboratories
Department of Mathematical Sciences    South Road
University of Durham                   Durham DH1 3LE
http://www.maths.dur.ac.uk/stats/people/jcr/jcr.html


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._