Re: [Rd] function curve() (PR#14191)

2010-01-21 Thread Tony Plate
You may have figured this out already, but you can get a "call" object from parse() by extracting its first element, as in mycurveC <- function(x,from=1,to=10){ xloc <- parse(text=x)[[1]] do.call("curve",list(expr=xloc,from=from,to=to)) } mycurveC("(x-4) ** 2") This doesn't address the co

[Rd] function curve() (PR#14191)

2010-01-20 Thread georgi . boshnakov
Full_Name: Georgi Boshnakov Version: 2.10.1pat OS: Windows XP Submission from: (NULL) (130.88.123.205) When calling programmatically function curve() from package:graphics I experienced some trouble since it reports stop("'expr' must be a function or an expression containing 'x'") eve