On 12-06-17 11:16 AM, [log in to unmask] wrote:
> 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?
I don't know how coda reads the filenames, but backslashes in strings
can be problematic, as they may be taken as escapes. I'd try using
forward slashes "/" instead.
Alternatively, use File|Change dir... or the choose.dir() function to
set your current directory to C:\Users\Roisin Admin\Desktop\, and then
you won't need either kind of slash when you specify the files.
Duncan Murdoch
-------------------------------------------------------------------
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
|