Re: [R] command line boa problems...

From: Martyn Plummer <plummer_at_iarc.fr>
Date: Fri 23 Jun 2006 - 23:46:15 EST

You need to give the file name in quotes. If you do not, R will look for an object of that name in your work space. Note that the error message is "object practice not found", not "file practice.txt not found."

You might also need to give the file extension, if this is not added by the boa.importASCII function.

What's wrong with coda anyway? Just curious.

Martyn

On Fri, 2006-06-23 at 09:35 -0400, Evan Cooch wrote:
> Greetings -
>
> For a number of reasons, I'm moving from CODA to BOA - and I have one or
> two really basic, boa-newbie questions. While I have the 'menu-driven'
> version of boa working fine (most recent version, running under R 2.3.1
> on a Windows machine), for the life of me I can't seem to get some basic
> boa.xxxx command-line functions to work at all. Even things like
> boa.version() or boa.license() return errors. But, boa.init() and other
> functions seem to work fine.
>
> At this stage, I'd be happy getting the first - fairly key - function to
> work - boa.importASCII. My MCMC sample data are in a flat ASCII file
> (white-space delimited), called practice.txt. There are two columns in
> the file (iteration number, parameter value), both labeled in the first
> row of the file (as per instructions in the boa documentation). I know
> the file is formatted OK, because I can import and play with it
> successfully using the boa.menu() approach. But, for some reason,
> boa.importASCII won't touch it.
>
> Suppose the file is on my desktop (remember, windows machine)
>
> I've tried all the variuous front-slash, back-slash, double-slash etc.
> combinations I can think of...
>
> boa.importASCII(practice,"c:\documents and settings\eg7\desktop")
>
> boa.importASCII(practice,"c:\\documents and settings\\eg7\\desktop")
>
> boa.importASCII(practice,"c:/documents and settings/eg7/desktop")
>
> boa.importASCII(practice,path="c:/documents and settings/eg7/desktop")
>
> boa.importASCII(practice,path="c:\\documents and settings\\eg7\\desktop")
>
> and so on...and so on...in each case, boa.importASCII reports that
>
> Error in paste(prefix, boa.par("ASCIIext"), sep = "") :
> object "practice" not found
>
> or something to that effect - basically, practice.txt isn't being found.
>
> Help!
>
> Thanks!



This message and its attachments are strictly confidential. ...{{dropped}}

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat Jun 24 01:03:48 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sat 24 Jun 2006 - 02:12:31 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.