Re: [R] eval.wih.vis

From: mysimbaa <>
Date: Tue, 15 Jul 2008 23:11:46 -0700 (PDT)

I solved my problem.
I had to delete stop()
It doesn't make sense to have a stop() in if. stop() is to stop the execution of the code once the condition is met. the else does the job of stop() in this case.

mysimbaa wrote:
> Hello,
> I have an error since I run my R code. This error is :
> Fehler in eval.with.vis(expr, envir, enclos) :


> My code is:
> #CONDITION1 : check if the right logfile is chosen
> c1=log(z[,3],n)
> if (c1==FALSE) {
> plot(0:1,0:1,type = "n", axes=FALSE,xlab="",ylab="")
> text(0.4,0.8,adj=0,paste("FEHLER"),col="red")
> text(0.4,0.6,adj=0,paste("Falsche Logfile gewählt"))
> stop()} else
> {...}
> z[,3] is a vector of n values. And log is a function which returns
> #Detection whether the Right Logfile was chosen
> log<-function(col,Len){
> vLog=ifelse(sum(col)>(5000*Len),TRUE,FALSE)}
> I think the error comes from stop(), but not sure.
> Can anyone help to avoid this error?
> Thanks.
> Adel
View this message in context:
Sent from the R help mailing list archive at

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Wed 16 Jul 2008 - 10:38:34 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 16 Jul 2008 - 11:31:58 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive