Reset the CL-PFU database pipeline to original condition
pl_destroy.RdSometimes, you just need to start over from scratch.
This function destroys the local targets cache
and removes all tables in the database at conn.
Be sure you know what you're doing!
Usage
pl_destroy(
conn,
store = targets::tar_config_get("store"),
destroy_cache = FALSE,
drop_tables = FALSE
)Arguments
- conn
A
DBIconnection to a database.- store
The path to the
targetsstore. Default istargets::tar_config_get("store"), which is normally_targets.- destroy_cache
A boolean that tells whether to destroy the local
targetscache. Default isFALSE.- drop_tables
If
TRUE, all tables in conn are dropped. If a character vector, tells which tables to drop. Default isFALSE, meaning that no tables will be dropped.