powered by
eval(bquote(expr))
Evaluate expr with bquote .() substitution. Including .(-x) promoting x's value from character to a name, which is called "quote negation" (hence the minus-sign).
expr
bquote
.()
.(-x)
x
evalb(expr, where = parent.frame())
evaluated substituted expression.
expression to evaluate.
environment to work in.
if(requireNamespace('graphics', quietly = TRUE)) { angle = 1:10 variable <- as.name("angle") fn_name <- 'sin' evalb( plot(x = .(variable), y = .(-fn_name)(.(variable))) ) }
Run the code above in your browser using DataLab