optimize_text: Optimize text containing code.

Description Usage Arguments

View source: R/optimize-text.R

Description

Performs the desired optimization strategies in the text. Carefully examine the results after running this function!

Usage

1
optimize_text(text, optimizers = all_optimizers, iterations = Inf)

Arguments

text

A character vector with the code to optimize.

optimizers

A named list of optimizer functions.

iterations

Numeric indicating the number of times optimizers should pass. If there was no change after current pass, it will stop.


rco documentation built on April 17, 2021, 5:06 p.m.