setup_dirs | R Documentation |
Create standard project directories
setup_dirs(
...,
default = "cos",
.list = list(`1_data` = default, `9_report` = default, lib = "")
)
... |
named characters where name=directory_name and
value=character_codes_for_dirs, or unnamed characters where
value=directory_name (and |
default |
string identifying the default set of character_codes_for_dirs. one letter per subdirectory. Permitted letters are c=cfg, d=doc, j=job, l=log, o=out, and s=src |
.list |
as an alternative to ..., use .list to specify directories in a single list argument |
# prep
dir.create('example_project')
setwd('example_project')
setup_dirs()
setup_dirs('2_data','3_analyze','4_report','explore'='',default='cdos')
setup_dirs('1a_siteinfo','1b_discharge','2_clean'='dos','3_model'='cjs','explore'='')
# clean up
setwd('..')
unlink('example_project', recursive=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.