Description Usage Arguments Examples
Create standard project directories
1 2 3 4 5 |
... |
named characters where name=directory_name and value=filenames, or unnamed characters where value=filepaths. Paths can be relative. |
.list |
as an alternative to ..., use .list to specify files in a single list argument |
1 2 3 4 5 6 7 8 9 10 11 | # prep
dir.create('example_project')
setwd('example_project')
dirs <- setup_dirs('2_data','3_analyze','4_report','explore',default='cdos')
setup_files() # use the default as given for .list
setup_files('2_data/src'=c('data1.R','data2.R','helper-data.R'))
# 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.