Thanks a lot...I realised where I was going wrongif I declare debug
= F then my problem is getting solved.
-Original Message-
From: jim holtman [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 12, 2008 9:12 AM
To: Agarwal, Rahul-A
Cc: r-help@r-project.org
Subject: Re: [R] Debug command-how to use
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.