Learn R Programming

Rclean (version 1.0.0)

clean: clean --- Produces more transparent code. OUTPUT = The essential code needed to produce a result.

Description

Produces simplifed, "cleaned" code that is needed to create a result. Make sure that your working directory is set to the location of your script and that you have loaded data provenance for that script into R's option system, and Rclean takes care of the rest.

Usage

clean(result = "Name of desired result", tidy = TRUE)

Arguments

result

A desired output present in the script.

tidy

LOGICAL: should the cleaned script be formatted using syntax best practices?

Value

Cleaned code as a vector of strings ordered by line number.

See Also

write.code

Examples

Run this code
# NOT RUN {
data(prov_json)
options(prov.json = prov_json)
clean() # Pick from the list of possible results
# }

Run the code above in your browser using DataLab