[R] make check fails for 1.3.0 on SGI at ISOdate(1901,1,1)

Setzer.Woodrow@epamail.epa.gov Setzer.Woodrow at epamail.epa.gov
Tue Jun 26 21:46:58 CEST 2001


In fact, ISOdate fails with any date earlier than 1970 on this system:

> ISOdate(1969,12,31)
[1] "NA"
> ISOdate(1970,1,1)
[1] "1970-01-01 07:00:00 EST"

The problem is in strptime:

> strptime(paste(1970,1,1,12,0,0),"%Y %m %d %H %M %S")
[1] "1970-01-01 12:00:00"
> strptime(paste(1969,12,31,12,0,0),"%Y %m %d %H %M %S")
[1] "NA"

The man page for strptime doesn't mention any limitations.

R. Woodrow Setzer, Jr.                                            Phone:
(919) 541-0128
Experimental Toxicology Division                       Fax:  (919) 541-5394
Pharmacokinetics Branch
NHEERL MD-74; US EPA; RTP, NC 27711


                                                                                                                 
                    Peter Dalgaard                                                                               
                    BSA                     To:     Woodrow Setzer/RTP/USEPA/US at EPA                              
                    <p.dalgaard at bios        cc:     r-help at hypatia.math.ethz.ch                                  
                    tat.ku.dk>              Subject:     Re: [R] make check fails for 1.3.0 on SGI at            
                    Sent by:                ISOdate(1901,1,1)                                                    
                    pd at pubhealth.ku.                                                                             
                    dk                                                                                           
                                                                                                                 
                                                                                                                 
                    06/26/01 03:35                                                                               
                    PM                                                                                           
                                                                                                                 
                                                                                                                 




Setzer.Woodrow at epamail.epa.gov writes:

> I've successfully compiled R 1.3.0 on SGI (info below) but it fails make
> check.  From base-Ex.Rout:
>
> > ## first days of years in the (commonly used) 20th century
> > seq(ISOdate(1901,1,1), ISOdate(1999,1,1), "years")
> Error in if (to <= from) stop("`to' must be later than `from'") :
>         missing value where logical needed
> Execution halted
>
> Indeed, from the same binary:
>
> > ISOdate(1901,1,1)
> [1] "NA"
> > ISOdate(1999,1,1)
> [1] "1999-01-01 07:00:00 EST"
>
> Does anyone have any ideas?

You probably have a problem in the substrate that ISOdate feeds on.

Offhand, I'd suspect an overrun problem. Some systems that represent
time as seconds since 1970 get in trouble in 2038, wouldn't they also
get in trouble from going more than 68 years backwards in time from
1970. Does it work if you replace 1901 with - say - 1910?

To see if the rest checks out, you could comment out that example in
the sources.

--
   O__  ---- Peter Dalgaard             Blegdamsvej 3
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907




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