[R] S-Plus compatability...
Pikounis, Bill
v_bill_pikounis at merck.com
Wed Jan 15 19:57:03 CET 2003
Neil,
You may want to look at the 7th and preceding lines of traceback(). For
instance, the read.table() function calls scan() in its body definition.
You may even have something else calling the functon that called scan (e.g.
read.table()) in the script where the error occurred. Perhaps you can
provide the traceback() output?
Hope that helps,
Bill
> -----Original Message-----
> From: Neil Shephard [mailto:mdeasnds at fs1.ser.man.ac.uk]
> Sent: Wednesday, January 15, 2003 11:05 AM
> To: r-help at stat.math.ethz.ch
> Subject: [R] S-Plus compatability...
>
>
> Dear all,
>
> I was wondering if someone could point me in the right direction to
> solve a problem I've encountered.
>
> I have a set of S-plus scripts which call an external program to
> analyse the data (the external program is called Genehunter and is
> used for genetic analysis). There are a six scripts in
> total, five of
> which are called from the main script. I made a few changes like
> changing unix > system, but I've encountered an error problem I'm
> not sure how to resolve.
>
> The majority of the script appears to run fine, the external program
> is invoked okay, and it runs the analysis, however I get the error
> message...
>
> Error in scan(file = file, what = what, sep = sep, quote = quote, dec
> = dec :
> line 1 did not have 2 elements
>
> Using the traceback() command produces a list of eight
> commands, the eighth being the one that causes the error.
>
> I've used grep -e 'scan' *.SSC to search the files for the scan
> command that might be creating the problem, but there is only one
> instance of scan in any of the six files, but the line it is
> on does not
> have the same syntax as the eigth line reported by traceback() that
> causes the error.
>
> I can provide the scripts if required, but have not included them
> here as this msg is going to a list.
>
> I'm not much of an expert with S-plus or R, and any help would be
> appreciated.
>
> Thanks in advance,
>
> Neil
>
> Neil Shephard
> Genetics Statistician
> ARC Epidemiology Unit, University of Manchester
> neil.shephard at man.ac.uk
> neil.shephard at mindless.com
>
> "Contrariwise, if it was so, it might be; and if it
> were so it would be; but as it isn't, it ain't. That's
> logic" - Tweedledee (Alice Through the Looking Glass)
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> http://www.stat.math.ethz.ch/mailman/listinfo/r-help
>
------------------------------------------------------------------------------
More information about the R-help
mailing list