[Rd] demo(is.things) fails (PR#772)
Prof Brian Ripley
Prof Brian Ripley <ripley@stats.ox.ac.uk>
Mon, 18 Dec 2000 13:38:04 +0000 (GMT)
> From: B.Rowlingson@lancaster.ac.uk
> Date: Mon, 18 Dec 2000 13:46:04 +0100 (MET)
> To: r-devel@stat.math.ethz.ch
> Subject: [Rd] demo(is.things) fails (PR#772)
> CC: R-bugs@biostat.ku.dk
> X-Loop: R-bugs@biostat.ku.dk
>
> Full_Name: Barry Rowlingson
> Version: R-1.2.0
> OS: RH7/i386
> Submission from: (NULL) (148.88.0.11)
>
>
> demo(is.things) fails with:
>
> > is.ALL(NULL)
> Error in as.POSIXct.default(x) : Don't know how to convert `x' to class
> "POSIXct"
> In addition: Warning message:
> is.nan() applied to non-(list or vector) in: fn(obj)
>
> - this seems to be because it is calling:
>
> > is.na.POSIXlt(NULL)
> Error in as.POSIXct.default(x) : Don't know how to convert `x' to class
> "POSIXct"
>
> is.na.POSIXlt(NA) gives the same error, and there's nothing on NA's or
> NULL's in the documentation for the POSIX{l,c}t functions. It seems that
> errors in these functions cause 'stop()' calls rather than returning NA's.
That's a *method* for is.na which should not be called directly by users.
It should only be called with an argument inheriting from class POSIXlt.
I have no idea why anyone wrote a demo to call methods directly, but after
four years it looks like it needs updating.
--
Brian D. Ripley, ripley@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-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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._