Learn R Programming

Xmisc (version 0.1.0)

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
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
}

Run the code above in your browser using DataLab