R/dir.check.add.r
dir.check.add.RdUsed in several functions before saving output. Ensures that the code doesn't fail by making sure the directory exists.
dir.check.add(Dir.main = getwd(), Dir.sub)
| Dir.main | Main/root directory; default is getwd() |
|---|---|
| Dir.sub | sub directory to check for and add if necessary. |
Nothing to return