First check if a directory exists. If it does, return TRUE, otherwise
create it with dir.create(recursive = TRUE) by default.
Arguments
- x
A path name.
- recursive
Whether to create all directory components in the path.
- ...
Other arguments to be passed to
dir.create().