Re: [R] debug(sum) error

2009-10-10 Thread Duncan Murdoch
On 10/10/2009 7:00 PM, Another Oneforyou wrote: Hi, I'm working through "R-debug-tools.pdf" and on page 7 it describes doing: Browse[1]> debug(sum) ## Flag sum for debugging however, when I try this, I get: Browse[1]> debug(sum)Error in debug(fun) : argument must be a closure Does anyone know why

[R] debug(sum) error

2009-10-10 Thread Another Oneforyou
Hi, I'm working through "R-debug-tools.pdf" and on page 7 it describes doing: Browse[1]> debug(sum) ## Flag sum for debugging however, when I try this, I get: Browse[1]> debug(sum)Error in debug(fun) : argument must be a closure Does anyone know why I get this error, and how to work around it? Tha