Re: [R] putting match.call to good use

2009-01-28 Thread Prof Brian Ripley
On Wed, 28 Jan 2009, Dieter Menne wrote: Prof Brian Ripley stats.ox.ac.uk> writes: The way to do this is eval(substitute()). E.g. from the new Rd2HTML What is Rd2HTML? A function in the R-devel version of R (is 'new' not rather a hint?). From the NEWS file: o parse_Rd(), an exp

Re: [R] putting match.call to good use

2009-01-28 Thread Peter Dalgaard
Prof Brian Ripley wrote: > On Wed, 28 Jan 2009, Harald Eikrem wrote: > >> ( I just became aware the mailer enforces html bodies, as such removed >> by the list handler. Sorry about that. My message was ) >> >> I have this function >> >> slm <- function(fun=lm, ...) { >> #ilm <- eval(match.call(

Re: [R] putting match.call to good use

2009-01-28 Thread Dieter Menne
Prof Brian Ripley stats.ox.ac.uk> writes: > The way to do this is eval(substitute()). E.g. from the new Rd2HTML > What is Rd2HTML? Dieter __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

Re: [R] putting match.call to good use

2009-01-28 Thread Prof Brian Ripley
On Wed, 28 Jan 2009, Harald Eikrem wrote: ( I just became aware the mailer enforces html bodies, as such removed by the list handler. Sorry about that. My message was ) I have this function slm <- function(fun=lm, ...) { #ilm <- eval(match.call()[-1]); # no way ilm <- eval(parse(text=sub

[R] putting match.call to good use

2009-01-28 Thread Harald Eikrem
( I just became aware the mailer enforces html bodies, as such removed by the list handler. Sorry about that. My message was ) I have this function slm <- function(fun=lm, ...) { #ilm <- eval(match.call()[-1]); # no way ilm <- eval(parse(text=sub("^list", deparse(substitute(fun)), depar

[R] putting match.call to good use

2009-01-28 Thread Harald Eikrem
__ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.