Description Usage Arguments Examples
create a directory/file if it doesn't exist. directory is required to end with "/" (e.g. ./temp/) when filename is provided, the parent directory will be created. (e.g. ./tmp/ will be created is ./tmp/test.csv is provided)
1 | util.init.dir(path)
|
path |
directory/file to be created |
1 2 3 4 | util.init.dir('./tmp1/')
util.init.dir('./tmp2/text.txt')
unlink('tmp1', recursive = TRUE)
unlink('tmp2', recursive = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.