[Rd] Bug in SOM package (PR#7038)
Nikhil R Garge
nikhilg at uab.edu
Thu Jul 1 19:12:55 CEST 2004
Dear Mr. Jun Yan and Dr. Riply,
Sorry for the sloppy email I sent earlier about the bug in R.
Bug Report in R:
Version: 1.9
Package: som
Bug description:
This simple code WITHOUT "for loop" EXECUTES
PROPERLY:-------simple.r--------
library(som)
A <- as.matrix(read.table("C:/code/h.txt", sep="\t", header=TRUE,
row.names=1))
print(som(A,1,2)$visual)
print(som(A,1,3)$visual)
------------------------------------------------------------------------
---------------------------------------
But the same logic if coded IN "for loop" DOESNT EXECUTE:
Code WITH "for
loop":-----------------------------sim.r--------------------
library(som)
A <- as.matrix(read.table("C:/code/h.txt", sep="\t", header=TRUE,
row.names=1))
for(x in 2:3){
print(som(A,1,x)$visual)
}
------------------------------------------------------------
ERROR GENERATED: -----------------------------------------------------
This is Microsoft Visual C++ runtime error in Rgui.exe
File = tn/vec.h
Line 250
Expression: i<=n_
------------------------------------------------------------------------
-----------
Thanks,
Nikhil Garge
Computer Science graduate student,
University go Alabama Birmingham
-----Original Message-----
From: Prof Brian Ripley [mailto:ripley at stats.ox.ac.uk]
Sent: Thu 7/1/2004 2:36 AM
To: Nikhil R Garge
Cc: r-devel at stat.math.ethz.ch; Jun Yan
Subject: Re: [Rd] Bug in SOM package (PR#7038)
Please send bugs in packages (I think this is som, not SOM, and
R does
care) to the package maintainer (Cc:ed here), as the FAQ asks.
Also,
please give the version of R and of the package used.
I can't test this as I cannot even install som with gcc 3.4.0,
and I have
just reported that to the maintainer.
As the package maintainer has no access to R-bugs and basic
information is
missing I am going to close this report on R-bugs and refer it
to the
maintainer.
On Thu, 1 Jul 2004 nikhilg at uab.edu wrote:
> Bug in "SOM" package in R.
>
> This simple code withot for loop runs:-------simple.r--------
>
> library(som)
> A <- as.matrix(read.table("C:/code/h.txt", sep="\t",
header=TRUE,
> row.names=1))
> print(som(A,1,2)$visual)
> print(som(A,1,3)$visual)
> ----------------------------------------
>
> The same code if inserted in for loop generates "Assertion
failure" in
> Rgui.exe.
>
> This is Microsoft Visual C++ runtime error in Rgui.exe and
File =
> tn/vec.h
>
> Line 250
> Expression: i<=n_
>
> Code with for
loop:----------------------------sim.r--------------------
>
> library(som)
> A <- as.matrix(read.table("C:/code/h.txt", sep="\t",
header=TRUE,
> row.names=1))
> for(x in 2:3){
> print(som(A,1,x)$visual)
> }
>
> Thanks,
> Nikhil Garge
> Computer Science graduate student,
> UAB
--
Brian D. Ripley, ripley at 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
[[alternative HTML version deleted]]
More information about the R-devel
mailing list