What is 'debug' defined as? Include at least the assignment or 'str(debug)'. If you have not assigned anything to it, then 'debug' is a function in the basic set of R functions and may be giving you a message like:
> if (debug) 1 Error in if (debug) 1 : argument is not interpretable as logical > str(debug) # here is what it is defined as function (fun) On Tue, Nov 11, 2008 at 9:50 PM, <[EMAIL PROTECTED]> wrote: > I am getting this error could any one tell me why? > if(debug) cat("rahul") > Error in if (debug) cat("rahul") : > argument is not interpretable as logical > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Jim Holtman Cincinnati, OH +1 513 646 9390 What is the problem that you are trying to solve? ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.