Page 1 of 1

RMark "Error in file(con, "r") : unable to op

PostPosted: Mon Oct 29, 2007 3:53 pm
by ljuliusson
Hi all -

I am trying to follow along the RMark example from appendix C.2. "A simple example (the return of the dippers)", and haven't been able to get the command "mark" to work. I get what seems to be a pathing error, but I've Mark installed in the default directory, and even set it MarkPath explicitly and still get the error. Can anyone help? I have searched the posts here, and RTFM, so I'm hoping someone has an answer.
Thanks!
Lara

Here is my R code so you can see what I've done:


> library(RMark)
This is RMark 1.6.8
Built: R 2.5.1; i386-pc-mingw32; 2007-10-02 16:57:06; windows

> getwd()
[1] "C:/Program Files/R/R-2.6.0/RMark"
> data(dipper)
> ls()
[1] "dipper"

> summary(dipper)
ch sex
Length:294 Female:153
Class :character Male :141
Mode :character

> myexample=mark(dipper)
Error in file(con, "r") : unable to open connection
In addition: Warning messages:
1: In system(paste(dQuote(MarkPath), "Mark.exe BATCH i=", inputfile, :
c:/Program not found
2: In file(con, "r") :
cannot open file 'mark001.out', reason 'No such file or directory'


********Following model failed to run : Phi(~1)p(~1) **********

> MarkPath="C:/Program Files/Mark/"

> myexample=mark(dipper)
Error in file(con, "r") : unable to open connection
In addition: Warning messages:
1: In system(paste(dQuote(MarkPath), "Mark.exe BATCH i=", inputfile, :
C:/Program not found
2: In file(con, "r") :
cannot open file 'mark001.out', reason 'No such file or directory'


********Following model failed to run : Phi(~1)p(~1) **********

PostPosted: Mon Oct 29, 2007 4:36 pm
by Rotella
Lara,
If you are running R 2.6.0, downloading the latest version of RMark from http://www.phidot.org/software/mark/rmark/ might help.
Jay

PostPosted: Mon Oct 29, 2007 6:21 pm
by ljuliusson
Thanks Jay,

I do have the latest RMark version from 10/2/07.

Lara

RMark 1.6.9

PostPosted: Mon Oct 29, 2007 7:34 pm
by jlaake
With R2.6.0 you need RMark V1.6.9. Jay has this version but I was waiting to post it to the web yet until we tested the nest survival model which was added in that version. I'll post it when I return on Thursday from vacation so others don't run into this problem. I sent Lara the zip. If others need it before Thurs, send me a message (jeff.laake@noaa.gov)

--jeff

Versions of R and RMark

PostPosted: Tue Oct 30, 2007 9:00 am
by jlaake
Evan has posted v1.6.9 for me. As a general caution, watch what version of R was used to build RMark after you issue the library(RMark) command.

> library(RMark)
This is RMark 1.6.9
Built: R 2.6.0; i386-pc-mingw32; 2007-10-10 13:41:32; windows

If you are using a version of R that is higher than the one shown for RMark then you may experience problems. I try to stay up on R version changes but R releases are fairly frequent and occasionally they will tweak an option that affects the code. In this case they changed the default option for fancyquotes which affected the call to run mark.exe.