From maechler at stat.math.ethz.ch  Tue Sep 16 15:34:04 2003
From: maechler at stat.math.ethz.ch (Martin Maechler)
Date: Tue Sep 16 14:33:54 2003
Subject: [Rd] `var' broken in 1.8.0 alpha (2003-09-15)
In-Reply-To: <Pine.LNX.4.51.0309161150450.7958@artemis.imbe.med.uni-erlangen.de>
References: <Pine.LNX.4.51.0309161150450.7958@artemis.imbe.med.uni-erlangen.de>
Message-ID: <16231.828.155800.280274@gargle.gargle.HOWL>

>>>>> "Torsten" == Torsten Hothorn <Torsten.Hothorn@rzmail.uni-erlangen.de>
>>>>>     on Tue, 16 Sep 2003 11:55:30 +0200 (CEST) writes:

    Torsten> Hi,

    Torsten> in last nights alpha version, `var' is broken:

    R> var(rnorm(100))
    Torsten> Error in var(rnorm(100)) : 3 arguments passed to
    Torsten> "cov" which requires 4.

    Torsten> which I suspect is due to recent changes to
    Torsten> `cov'. The same is true for

    R> cov(rnorm(100), rnorm(100))
    Torsten> Error in cov(rnorm(100), rnorm(100)) : 3 arguments
    Torsten> passed to "cov" which requires 4.


Yes these two are related, but the e-mail subject is wrong:
It's *your* fault because you must have unpacked the new version
on top of an older one.
The official alpha version (Snapshots from here, or rsync) do
not have your problem:
Before a few days ago, there were files  
    src/library/base/R/var.R
    src/library/base/R/cov.R
the newer R-alpha do not have them -- and if you use the old
files where you shouldn't --> you get the problem.

Regards,
Martin Maechler <maechler@stat.math.ethz.ch>	http://stat.ethz.ch/~maechler/
Seminar fuer Statistik, ETH-Zentrum  LEO C16	Leonhardstr. 27
ETH (Federal Inst. Technology)	8092 Zurich	SWITZERLAND
phone: x-41-1-632-3408		fax: ...-1228			<><


[Rd] `var' broken in 1.8.0 alpha (2003-09-15)
Martin Maechler