mkdir: Make Directory

View source: R/utilities.R

mkdirR Documentation

Make Directory

Description

Create a directory using either a relative path or an absolute path.

Usage

mkdir(dir, r = TRUE)

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

Author(s)

James Balamuta

Examples


# 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")


coatless/balamuta documentation built on Nov. 16, 2023, 5:30 a.m.