Learn R Programming

Xmisc (version 0.2.1)

make.dir: Make a directory recursively

Description

Make a directory recursively

Usage

make.dir(x, mode)

Arguments

x
character, a directory name.
mode
the mode of the path, see dir.create

Examples

Run this code
## Not run: 
# if (character_to_logical(
#   raw_input("Would you like to create a directory for testing
#   at current working directory?",c('yes','no')))){
#   ## make.dir('testdir','751') # uncomment it to let R create the directory
# }
# ## End(Not run)

Run the code above in your browser using DataLab