View source: R/opt-dead-expr.R
opt_dead_expr | R Documentation |
Performs one dead expression elimination pass. Carefully examine the results after running this function!
opt_dead_expr(texts)
texts |
A list of character vectors with the code to optimize. |
code <- paste(
"foo <- function(x) {",
" x ^ 3",
" return(x ^ 3)",
"}",
sep = "\n"
)
cat(opt_dead_expr(list(code))$codes[[1]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.