clean | R Documentation |
Reduce the size and complexity of a analytical script through algorithmic detection of the essential code needed to produce a set of results.
clean(script, vars, format = TRUE)
script |
File path to a script or a Script object from CodeDepends. |
vars |
The name of the variable(s) of interest. |
format |
LOGICAL: should the minimized code be re-formatted following common syntax style guides? |
A character vector containing a minimized script based on the given input variable or set of variables.
Matthew K. Lau
script <- system.file( "example", "simple_script.R", package = "Rclean") clean(script) clean(script, "mat") clean(script, "tab.12") clean(script, c("mat", "tab.12", "out"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.