[ESS] Possible trivial bug in ess-eval-function

Erik Iverson iverson at biostat.wisc.edu
Wed Feb 27 19:17:06 CET 2008


Hello -

I came across the following behavior today.

## submit this with C-c C-f (ess-eval-function)
onelinefunc <- function(x)  class(x)

## then call the function
onelinefunc("a")

## output is:
function (x)  .Primitive("class")

## What is onelinefunc?
 > onelinefunc
function(x)  class

However, if I submit the one-line function call with C-c C-n, the 
function gets defined correctly.

If I define the one-liner with {}'s, the issue also is solved.

Admittedly, this is a trivial issue, just thought someone might like to 
know.

Best,
Erik Iverson




More information about the ESS-help mailing list