s-news
[Top] [All Lists]

Question about memory allocation error

To: <s-news@wubios.wustl.edu>
Subject: Question about memory allocation error
From: "Brian Wu" <bwu@guzman.com>
Date: Thu, 13 Jul 2006 11:24:25 -0400
Thread-index: AcamdCWdaTaCc+5bSdKqZeYt0idWswAG8aHQ
Thread-topic: [S] guiPlot question
My program did lots ODBC querys.
It works at the first run and always show error at the second (sometime third) run.
I put those lines into a function and call the function. The following error still show up in the second or third run.
Any clue of this problem?
Any suggestion will be greatly apprecitated.
 
********************** Error Message******************
Error in odbcQuery(channel, query, rows_at_time) :
        Calloc could not allocate (263168 of 1) memory
In addition: Warning message:
Reached total allocation of 1024Mb: see help(memory.size)
********************** Error Message******************
 
Brian
-----Original Message-----
From: s-news-owner@lists.biostat.wustl.edu [mailto:s-news-owner@lists.biostat.wustl.edu]On Behalf Of Eric yang
Sent: Thursday, July 13, 2006 7:59 AM
To: s-news@wubios.wustl.edu
Subject: [S] guiPlot question

 
Dear members,
 
I have question related to guiPlot called within a function.
 
The following example works fine:

my.variables <- data.frame(runif(10), runif(10), runif(10))
 
guiPlot("3D Scatter", DataSetValues = my.variables)
guiModify("Axes3D", Name = "1", xTitleText = "Name of variable 1", yTitleText = "Name of variable 2", zTitleText = "Name of variable 3")
guiCreate("MainTitle", Name = "1", Title = "3D Scatter Plot")
 
 
However, if I define the function:

plot.function <- function(my.data) {
 guiPlot("3D Scatter", DataSetValues = my.data)
 guiModify("Axes3D", Name = "1", xTitleText = names(my.data)[1], yTitleText = names(my.data)[2], zTitleText = names(my.data)[3])
 guiCreate("MainTitle", Name = "1", Title = "3D Scatter Plot")
 guiCreate("Grid3D", Name = guiGetPlotName(), ProjectionPlane = "XY", Position = "0.0")
}
 
And, rename the variables
names(my.variables) <- c( "Name of variable 1",  "Name of variable 2",  "Name of variable 3")
 
The following command:
plot.function(my.variables)
gives the error:
Problem in guiPlot("3D Scatter", DataSetValues = my.data): A name is required in order to assign an object to a database
 
I don't know what this error means. I'd appreciate any help on this subject.
 
Thanks in advance.
 
Eric


Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min.
<Prev in Thread] Current Thread [Next in Thread>
  • Question about memory allocation error, Brian Wu <=