s-news
[Top] [All Lists]

Apparent address problem with a script

To: s-news@lists.biostat.wustl.edu
Subject: Apparent address problem with a script
From: Virginia L McGuire <vlmcguir@usgs.gov>
Date: Sat, 26 Feb 2005 03:20:40 -0600
Cc: Virginia L McGuire <vlmcguir@usgs.gov>
Hello,

I am using Splus 6.1 on a pc with Windows XP Operating system. I
have 2 gig of RAM on the pc

I am trying to write a script to generate 4 graphs on 2 pages for a number
of entities ("nests"). The script is as follows:
>>>>>>>>>>>>>>>>>>>>>>
nests <-
   
c("S01","S02","S03","A01","A02","A03","V01","V02","V03","EC1","EC2","BA1","BA2",

   
"BA3","BC1","BC2","BC3","T01","T02","T03","W01","W02","W03","H01","H02","H03","ZZZ")
i <- 1
while (i < 2) {
DATASET <- paste("X331.all.out.wnames.",nests[i],sep="")
GRAPHSHEETa <- paste(nests[i],"a",sep="")
GRAPHSHEETb <- paste(nests[i],"b",sep="")
SAVEDGRAPHa <-
   
paste("Z:\\Luey\\00331_and_00327.papio_monitoring\\FY04\\analysis331\\4annual_rpt\\",nests[i],"a.sgr",sep=""
 )
SAVEDGRAPHb <-
   
paste("Z:\\Luey\\00331_and_00327.papio_monitoring\\FY04\\analysis331\\4annual_rpt\\",nests[i],"b.sgr",sep=""
 )
guiPlot( PlotType = "Line Scatter", DataSet = DATASET, Columns =
   "DATES,P00010",GraphSheet=GRAPHSHEETa)
guiPlot( PlotType = "Line Scatter", DataSet = DATASET, Columns =
   "DATES,P00095",GraphSheet=GRAPHSHEETa)
guiPlot( PlotType = "Line Scatter", DataSet = DATASET, Columns =
   "DATES,P00300",GraphSheet=GRAPHSHEETa)
guiPlot( PlotType = "Line Scatter", DataSet = DATASET, Columns =
   "DATES,P00400",GraphSheet=GRAPHSHEETa)
guiPlot( PlotType = "Line Scatter", DataSet = DATASET, Columns =
   "DATES,P00613",GraphSheet=GRAPHSHEETb)
guiPlot( PlotType = "Line Scatter", DataSet = DATASET, Columns =
   "DATES,P00631",GraphSheet=GRAPHSHEETb)
guiPlot( PlotType = "Line Scatter", DataSet = DATASET, Columns =
   "DATES,P00915",GraphSheet=GRAPHSHEETb)
guiPlot( PlotType = "Line Scatter", DataSet = DATASET, Columns =
   "DATES,P01046",GraphSheet=GRAPHSHEETb)
i <- i + 1
}

>>>>>>>>>>>>>>>>>>>>>>

The script is currently is set up to runs for only one "nest" -- S01.
1) Sometimes, when I run the script after I first sign into Splus (after
   doing a restart on my pc and
after deleting my .Prefs directory), I get the first page of graphs
   (GRAPHSHEETa) , but the
second page(GRAPHSHEETb)is blank--and I have gotten the following error
   messages:

Problem in apply(charmat, 2, "paste", collapse = ""): Internal error: data
   for ref. count didn't point to a valid arena (0x9fa6a50)
Use traceback() to see the call stack
Problem: Internal error: data for decrementing ref. count didn't point to a
   valid arena (0x9f1ec50)
Use traceback() to see the call stack
Problem: Internal error: data for decrementing ref. count didn't point to a
   valid arena (0x7efb090)
Use traceback() to see the call stack
Problem: internal error: recursive object doesn't have a recursive arena
Use traceback() to see the call stack

If I try to rerun the script (after deleting the two graphsheets previously
   generated), the system generates
the first grahsheet (GRAPHSHEETa) and hangs on the second.(GRAPHSHEETb). I
   cannot see the
error messages, if any, because the graph covers them.

2) Othertimes, when I run the script after I first sign into Splus (after
   doing a restart on my pc and
after deleting my .Prefs directory) the system hangs on the first or second
   page of graphs (GRAPHSHEETa\
GRAPHSHEETb).

If you can give me an idea of how to correct this problem, I would
   appreciate it.

Thanks.

Virginia (Ginny) L. McGuire


<Prev in Thread] Current Thread [Next in Thread>