Re: [R] R 1.9.0 on AIX, 64-bit

About this list Date view Thread view Subject view Author view Attachment view

From: Prof Brian Ripley (ripley@stats.ox.ac.uk)
Date: Mon 03 May 2004 - 22:58:02 EST


Message-id: <Pine.LNX.4.44.0405031352410.26348-100000@gannet.stats>

The second (at least) looks like a broken strptime. Try undefining
HAVE_WORKING_STRPTIME in src/include/config.h and recompiling.

Unfortunately, it could also be a broken mktime.

On Mon, 3 May 2004, Andy Pierce wrote:

> I'm trying to get R 1.9.0 running on AIX 5.1 with the standard AIX
> compilers (xlc, xlf) and it is failing 2 of the tests,
> test-Reg in reg-tests-1.R like this:
>
> bash-2.05b$ tail -30 reg-tests-1.Rout.fail
> [,1] [,2]
> [1,] 1 3
> [2,] 2 4
> [3,] 1 3
> [4,] 2 4
> > stopifnot(typeof(res) == "list")
> > ## were not implemented in 1.8.1
> >
> >
> > ## Date objects with NA's
> > (t1 <- strptime(c("6. Aug. 1930", "3. Nov. 1925", "28. Mar. 1959",
> + NA, paste(1:29," Feb. 1960", sep=".")),
> + format = "%d. %b. %Y"))
> [1] "1930-08-06" "1925-11-03" "1959-03-28" NA "1960-02-01"
> [6] "1960-02-02" "1960-02-03" "1960-02-04" "1960-02-05" "1960-02-06"
> [11] "1960-02-07" "1960-02-08" "1960-02-09" "1960-02-10" "1960-02-11"
> [16] "1960-02-12" "1960-02-13" "1960-02-14" "1960-02-15" "1960-02-16"
> [21] "1960-02-17" "1960-02-18" "1960-02-19" "1960-02-20" "1960-02-21"
> [26] "1960-02-22" "1960-02-23" "1960-02-24" "1960-02-25" "1960-02-26"
> [31] "1960-02-27" "1960-02-28" "1960-02-29"
> > stopifnot(6 == length(print(s1 <- summary(t1))),
> + s1== summary(as.POSIXct(t1)),
> + 6 == length(print(format(as.Date(s1)))) )
> Min. 1st Qu. Median Mean 3rd Qu. Max.
> NA NA NA NA NA NA
> Min. 1st Qu. Median Mean 3rd Qu. Max.
> NA NA NA NA NA NA
> Error in if (!(is.logical(r <- eval(ll[[i]])) && all(r)))
> stop(paste(deparse(mc[[i + :
> missing value where TRUE/FALSE needed
> Execution halted
>
> and also in base-Ex.R like this:
>
> bash-2.05b$ tail base-Ex.Rout.fail
> > ### Title: Generate Regular Sequences of Dates
> > ### Aliases: seq.Date
> > ### Keywords: manip chron
> >
> > ### ** Examples
> >
> > ## first days of years
> > seq(as.Date("1910/1/1"), as.Date("1999/1/1"), "years")
> Error in fromchar(x) : character string is not in a standard unambiguous
> format
> Execution halted
>
> Does anyone have any ideas on how to fix this?
>
> Andy Pierce
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>
>

-- 
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 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________ R-help@stat.math.ethz.ch mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Mon 31 May 2004 - 23:05:07 EST