Create a directory using either a relative path or an absolute path.
Arguments
- dir
A string
indicating the directory to make.
- r
A boolean
that indicates whether the directories should be
made recursively
Value
New directory on file system
Examples
# \donttest{
# Make directory from working directory
mkdir("toad")
## This assumes the computer is on Windows and the C drive exists.
# Make directory from absolute path
mkdir("C:/path/to/dir/toad")
# }