ch_clear_wd {CSHShydRology} | R Documentation |
Empties and removes a working directory.
ch_clear_wd(wd, do_check = TRUE)
wd |
working directory file path |
do_check |
If |
The data for raster layers read in as Whitebox files are held on disk rather than in memory
result |
returns TRUE upon successful execution |
Dan Moore
ch_create_wd
to create working directory
# not tested as deleting all files in the directory cannot be tested in CRAN
# create an empty working directory
my_wd <- tempdir()
ch_create_wd(my_wd) # confirm creation
# clear the working directory
ch_clear_wd(my_wd)