Learn R Programming

drake (version 6.1.0)

clean_main_example: Clean the main example from drake_example("main")

Description

This function deletes files. Use at your own risk. Destroys the .drake/ cache and the report.Rmd file in the current working directory. Your working directory (getcwd()) must be the folder from which you first ran load_main_example() and make(my_plan).

Usage

clean_main_example()

Arguments

Value

Nothing.

See Also

load_main_example(), clean()

Examples

Run this code
# NOT RUN {
test_with_dir("Quarantine side effects.", {
if (requireNamespace("downloader")){
# Populate your workspace and write 'report.Rmd' and 'raw_data.xlsx'.
load_main_example() # Get the code: drake_example("main")
make(plan)
readd(hist) # Show the ggplot2 histogram.
# Clean up the example.
clean_main_example()
}
})
# }

Run the code above in your browser using DataLab