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

announcements (new versions, changes, bugs, installation problems...) related to program MARK

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

Postby ljuliusson » Mon Oct 29, 2007 3:53 pm

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) **********
ljuliusson
 
Posts: 3
Joined: Wed Sep 26, 2007 12:28 pm
Location: Denver, CO

Postby Rotella » Mon Oct 29, 2007 4:36 pm

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
Rotella
 
Posts: 73
Joined: Mon Jun 09, 2003 11:32 am

Postby ljuliusson » Mon Oct 29, 2007 6:21 pm

Thanks Jay,

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

Lara
ljuliusson
 
Posts: 3
Joined: Wed Sep 26, 2007 12:28 pm
Location: Denver, CO

RMark 1.6.9

Postby jlaake » Mon Oct 29, 2007 7:34 pm

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
jlaake
 
Posts: 1479
Joined: Fri May 12, 2006 12:50 pm
Location: Escondido, CA

Versions of R and RMark

Postby jlaake » Tue Oct 30, 2007 9:00 am

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.
jlaake
 
Posts: 1479
Joined: Fri May 12, 2006 12:50 pm
Location: Escondido, CA


Return to software problems/news

Who is online

Users browsing this forum: No registered users and 3 guests

cron