In R on Windows, you need to use a double back slash for fully qualified
path names
"C:\\Users\\Roisin Admin\\Desktop\\coda1.txt"
Or use a forward slash
"C:/Users/Roisin Admin/Desktop/coda1.txt"
Or change the working directory before starting codamenu()
R> setwd("C:/Users/Roisin Admin/Desktop")
R> codamenu()
and then just use "coda1.txt" etc.
Martyn
Quoting [log in to unmask]:
> I
>
>
> Basic problem: can't import main coda and coda index into R
>
> Details of what I've done
> saved main and coda index files as plain text files (also tried to add .out
> and .ind extensions and then remove them)
>
> tried to load them as per codamenu
>
> message
>
>
>
> > library(coda)
> Loading required package: lattice
> > codamenu()
> CODA startup menu
>
> 1: Read BUGS output files
> 2: Use an mcmc object
> 3: Quit
>
> Selection: 1
> Enter CODA index file name
> (or a blank line to exit)
> 1: "C:\Users\Roisin Admin\Desktop\codaindexfile.txt"
> Enter CODA output file names, separated by return key
> (leave a blank line when you have finished)
> 1:
> "C:\Users\Roisin Admin\Desktop\coda1.txt"
> 2: "C:\Users\Roisin Admin\Desktop\coda2.txt"
> 3:
> The following files were not found:
> "C:\Users\Roisin Admin\Desktop\codaindexfile.txt"
> "C:\Users\Roisin Admin\Desktop\coda1.txt"
> "C:\Users\Roisin Admin\Desktop\coda2.txt"
>
> Enter CODA index file name
> (or a blank line to exit)
> 1:
>
>
> Any thoughts?
> Thanks
> Dr Roisin Mc Allister (UUC)
-----------------------------------------------------------------------
This message and its attachments are strictly confidential. If you are
not the intended recipient of this message, please immediately notify
the sender and delete it. Since its integrity cannot be guaranteed,
its content cannot involve the sender's responsibility. Any misuse,
any disclosure or publication of its content, either whole or partial,
is prohibited, exception made of formally approved use
-----------------------------------------------------------------------
-------------------------------------------------------------------
This list is for discussion of modelling issues and the BUGS software.
For help with crashes and error messages, first mail [log in to unmask]
To mail the BUGS list, mail to [log in to unmask]
Before mailing, please check the archive at www.jiscmail.ac.uk/lists/bugs.html
Please do not mail attachments to the list.
To leave the BUGS list, send LEAVE BUGS to [log in to unmask]
If this fails, mail [log in to unmask], NOT the whole list
|