optimize_files {rco}R Documentation

Optimize '.R' files.

Description

Performs the desired optimization strategies in the files specified. Carefully examine the results after running this function! If several files interact between them (functions from one file use functions from the other), then optimizing all of them together gives more information to rco.

Usage

optimize_files(
  files,
  optimizers = all_optimizers,
  overwrite = FALSE,
  iterations = Inf
)

Arguments

files

A character vector with paths to files to optimize.

optimizers

A named list of optimizer functions.

overwrite

A logical indicating if files should be overwritten, or saved into new files with "optimized_" prefix.

iterations

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


[Package rco version 1.0.2 Index]