Create a directory using either a relative path or an absolute path.
     
    
    
    Arguments
    - dir
- A - stringindicating the directory to make.
 
- r
- A - booleanthat 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")
# }