[R] Debug command-how to use

jim holtman jholtman at gmail.com
Wed Nov 12 04:41:52 CET 2008


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