[R] Functions starting with underscores

From: Joseph Wang <joe_at_gnacademy.org>
Date: Mon 05 Jun 2006 - 15:35:57 EST

I'm having problems with functions starting with underscores

'_foo' <- function(x) {1}

seems to work

but I can't assign an attribute to this function

attr('_foo', 'bar') <- 'pow'

Any way of doing this? This is for a C++ -> R wrapping system so I'd like to keep the C++ names which start with underscores.

(please cc: responses to me personally)

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Mon Jun 05 15:47:01 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Mon 05 Jun 2006 - 18:10:25 EST.

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