The rco package can optimize R code in a variety of different ways. The package implements common subexpression elimination, constant folding, constant propagation, dead code elimination, among other very relevant code optimization strategies.
Currently, the rco could be downloaded as a GitHub package. The rco package functions as an RStudio Addin, be used through a shiny GUI interface, or as an R function through either the optimize_files() or optimize_text() functions.
Found an optimization method not currently supported by the rco package? Feel free to contribute! Your contribution is more than welcome.
Install rco now and make your R code run faster today!