delete_directory_system {rcprd} | R Documentation |
Deletes directory system created by delete_directory_system
Description
Deletes directory system created by delete_directory_system
. Primarily used to restore
filespaces to original in examples/tests/vignettes.
Usage
delete_directory_system(rootdir = NULL)
Arguments
rootdir |
Directory within which to delete the directory system |
Value
No return value, deletes directory system in the specified directory.
Examples
## Print current working directory
getwd()
## Create directory system
create_directory_system(tempdir())
file.exists(file.path(tempdir(),"data"))
file.exists(file.path(tempdir(),"code"))
file.exists(file.path(tempdir(),"codelists"))
## Return filespace to how it was prior to example
delete_directory_system(tempdir())
file.exists(file.path(tempdir(),"data"))
file.exists(file.path(tempdir(),"code"))
file.exists(file.path(tempdir(),"codelists"))
[Package rcprd version 0.0.1 Index]