mkdir | R Documentation |
Given a base directory and string, will check if specified directory exits, and make it if not. Can also choose to set as working directory.
mkdir(baseDir_v = NULL, newDir_v, wd_v = F, recursive_v = T)
baseDir_v |
Character string. Relative or absolute path to directory that will be parent of newly created directory. If set to NULL (default), then will use working directory. |
newDir_v |
Character string. Name of new directory. |
wd_v |
boolean values determining if new directory should be set as working directory (T) or not (F). |
recursive_v |
boolean value determining if all elements of path other than last should be created. Passed to dir.create |
Character string of path to new directory. Makes directory in file system. If wd_v == TRUE, also sets as working directory.
mkdir("~/", "mkdir_test")
setwd("~/test/")
mkdir(newDir_v = "anotherTest")
mkdir("~/", "wdTest", wd_v = T)
myDir_v <- mkdir("~/", "finalTest")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.