[R] how to get a primitive function object
Wacek Kusnierczyk
Waclaw.Marcin.Kusnierczyk at idi.ntnu.no
Thu Jan 22 23:45:56 CET 2009
Duncan Murdoch wrote:
>
> You can use parent.frame() as the pos or envir argument to assign(),
> and then the assignment happens in the caller's frame. And assign()
> is also another way out if you overwrite <- with something that
> doesn't work; just call it to reassign base::`<-` to it. Or just
> rm(`<-`) to unhide the original one.
unless you have redefined rm as well, that is.
vQ
More information about the R-help
mailing list