[R] Debug command-how to use

Rahul-A.Agarwal at ubs.com Rahul-A.Agarwal at ubs.com
Wed Nov 12 04:44:21 CET 2008

Thanks a lot...I realised where I was going wrong....if I declare debug
= F then my problem is getting solved.

-----Original Message-----
From: jim holtman [mailto:jholtman at gmail.com] 
Sent: Wednesday, November 12, 2008 9:12 AM
To: Agarwal, Rahul-A
Cc: r-help at 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,  <Rahul-A.Agarwal at ubs.com> 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 at 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?

More information about the R-help mailing list