R-alpha: 0.3: cumsum(.) fails "NAs non permitted in foreign function calls"

Martin Maechler (maechler@stat.math.ethz.ch)
Tue, 26 Mar 96 11:07:51 +0100


Date: Tue, 26 Mar 96 11:07:51 +0100
Message-Id: <9603261007.AA00793@>
From: Martin Maechler <maechler@stat.math.ethz.ch>
To: R-testers@stat.math.ethz.ch
Subject: R-alpha: 0.3: cumsum(.) fails "NAs non permitted in foreign function calls"

This is another one which did creep in from 0.2 to 0.3 :
It must be in the code to  .C , since 'cumsum' has not changed :

> cumsum(1)
Error: NAs non permitted in foreign function calls

> cumsum
function (x) 
{
	.C("cumsum", 
		as.double(x), 
		length(x), 
		as.double(NA),    <<<<<<<<
		double(length(x))
	)[[4]]
}

((How did I find out: well,  piechart(.) stopped working because of this bug))
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
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
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-