mark() not creating output files

posts related to the RMark library, which may not be of general interest to users of 'classic' MARK

mark() not creating output files

Postby gabrielcaetano » Thu Jan 17, 2013 10:02 am

I'm trying to run Pradel models on my data, but everytime i try to run any model, function mark() won't create the output file. I tried running the dipper example and got the same result. Reinstalling won't help also. Can anyone help??

Thanks.

Here is the script:

> setwd("C:/Users/Gabriel/Dropbox/Gabriel_mata/Tropidurus/rmark")
>
> library(RMark)
> MarkPath="D:/MARK"
>
> dados<-convert.inp("tropiduruspradel.inp",group.df=data.frame(area=c("IBGE","JBB")))
> dados.process<-process.data(dados,model="Pradrec",begin.time=1,groups="area")
> dll<-make.design.data(dados.process)
>
> time<-c(1:143)
> dfPhi<-data.frame(time,read.table("dfPhi.txt",h=T))
> time<-c(1:144)
> dfp<-data.frame(time,read.table("dfp.txt",h=T))
>
> dll$Phi<-merge_design.covariates(dll$Phi,dfPhi)
> dll$p<-merge_design.covariates(dll$p,dfp)
> dll$f<-merge_design.covariates(dll$f,dfPhi)
>
> phi.dot<-list(formula=~1)
> p.dot<-list(formula=~1)
> f.dot<-list(formula=~1)
>
> m0<-mark(dados)
Error in file(con, "r") : cannot open the connection
In addition: Warning message:
In file(con, "r") :
cannot open file 'mark001.out': No such file or directory


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

>
> dipper<-mark(dipper)
Error in file(con, "r") : cannot open the connection
In addition: Warning message:
In file(con, "r") :
cannot open file 'mark001.out': No such file or directory


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

> list.files()
[1] "dfp.txt" "dfPhi.txt" "mark001.inp"
[4] "tropiduruspradel.inp"
> dipper$output
NULL
gabrielcaetano
 
Posts: 5
Joined: Mon Dec 13, 2010 9:21 pm

Re: mark() not creating output files

Postby jlaake » Thu Jan 17, 2013 11:10 am

Most likely RMark is not finding mark.exe. You have set MarkPath to D:/Mark is that the location of mark64.exe or mark32.exe? If yes, then I'm not sure what the problem is because that should work. A solution is to add D:/Mark to your Path with Advanced Settings under Control Panel. If the mark executables are in a subdirectory in the path it will find them. You can check that by opening a command window and typing mark32 and if it says no such program then it is not in your path.

One other possibility is that it is trying to write the files to a directory where you don't have write access.

--jeff
jlaake
 
Posts: 1480
Joined: Fri May 12, 2006 12:50 pm
Location: Escondido, CA


Return to RMark

Who is online

Users browsing this forum: No registered users and 3 guests