Re: [R] Debug command-how to use

From: <Rahul-A.Agarwal_at_ubs.com>
Date: Tue, 11 Nov 2008 22:44:21 -0500

 

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?

______________________________________________
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.
Received on Wed 12 Nov 2008 - 03:55:31 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 12 Nov 2008 - 04:30:24 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive