create_directory_system {rcprd} | R Documentation |
Create the appropriate directory system to be able to run functions without specifying hard filepaths
create_directory_system(rootdir = NULL)
rootdir |
Directory within which to create the directory system |
No return value, creates directory system in the specified directory.
## Create directory system compatible with rcprd's automatic saving of output
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())