[Rd] as.name and namespaces

Hadley Wickham h.wickham at gmail.com
Wed Apr 24 15:02:41 CEST 2013

On Wed, Apr 24, 2013 at 4:29 AM, Patrick Burns <pburns at pburns.seanet.com> wrote:
> Here is an example problem:
>> mycall <- expression(lm(Y ~ x))[[1]]
>> mycall
> lm(Y ~ x)
>> newname <- "stats::lm"
>> desiredResult
> stats::lm(Y ~ x)
> I've solved the problem in the kludgy way of
> deparsing, fixing the string and then parsing.

I'm working on a comprehensive write up of computing on the language
at the moment. It's still a bit rough, but you might find
and https://github.com/hadley/devtools/wiki/Expressions#calls to be


Chief Scientist, RStudio

More information about the R-devel mailing list