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