R-alpha: R alpha 0.4

Paul Gilbert (pgilbert@bank-banque-canada.ca)
Mon, 1 Apr 1996 12:50:39 -0500

Date: Mon, 1 Apr 1996 12:50:39 -0500
From: pgilbert@bank-banque-canada.ca (Paul Gilbert)
To: R-testers@stat.math.ethz.ch
Subject: R-alpha: R alpha 0.4
Message-Id: <96Apr1.124552est.29442@mailgate.bank-banque-canada.ca>

I've compiled under Solaris with the changes mentioned by Mike Myer and
because of this error:

UNIXsystem.c: In function `main':
UNIXsystem.c:122: storage size of `t' isn't known
*** Error code 1
make: Fatal error: Command failed for target `UNIXsystem.o'

I commented out the line 122 in UNIXsystem.c
/*	struct tms t; */
since it seems to be only for an ifdef which doesn't apply under Solaris.

My time series software seem to load ok (until I hit complex number stuff),
but I haven't got very far with the tests.

I had to define
.Options$ts.eps <- 1e-5

I'm getting a strange behaviour in switch():

> start <- c(1980,1)
> freq <- 12
> ts.eps <- 1e-5

now this
> switch(length(start), start, start[1] + ((start[2] - 1)/freq) -ts.eps/4, stop("Bad value for start"))
Error: Bad value for start

should give 1979.9999975. But
> switch(length(start), start, start[1] + ((start[2] - 1)/freq) -ts.eps/4)
[1] 1980

works (print rounds the answer) and so does
> switch(length(start), start, start[1] + ((start[2] - 1)/freq) -ts.eps/4, "bad1", "bad2")
[1] 1980

r-testers mailing list -- To (un)subscribe, send
subscribe	or	unsubscribe
(in the "body", not the subject !)  To: r-testers-request@stat.math.ethz.ch