create_directory_system {rcprd} | R Documentation |
Create the appropriate directory system to be able to run functions without specifying hard filepaths
Description
Create the appropriate directory system to be able to run functions without specifying hard filepaths
Usage
create_directory_system(rootdir = NULL)
Arguments
rootdir |
Directory within which to create the directory system |
Value
No return value, creates directory system in the specified directory.
Examples
## 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())
[Package rcprd version 0.0.1 Index]