[R] Error message during debug

Gabor Grothendieck ggrothendieck at myway.com
Tue Apr 20 19:57:07 CEST 2004


Sundar Dorai-Raj <sundar.dorai-raj <at> PDF.COM> writes:

: 
: Gabor Grothendieck wrote:
: > 
: > In R 1.9.0 on Windows XP Pro I get an error if I try to
: > debug the identity function f shown:
: > 
: >  > f <- function(x)x
: >  > debug(f)
: >  > f(1)
: >  debugging in: f(1)
: >  Error in f(1) : Unimplemented feature in eval
: >  > R.version.string
: >  [1] "R version 1.9.0, 2004-04-12"
: > 
: > Without debuggging its ok.
: > 
: > 
: > 
: 
: Try
: 
: f <- function(x) { x }
: 
: --sundar

That made the error go away.  Note that 

  f <- function(x)sin(x)

does NOT produce the error under debugging.  Don't know why 
x and sin(x) would act differently in the above respect.




More information about the R-help mailing list