confirmdir | R Documentation |
confirmdir enables one to be sure a selected directory exists. If it has not been created then confirmdir will create it if it does not already exist. This is useful when defining output directories on the hard drive where large objects may be stored.
confirmdir(x, make = TRUE, verbose = TRUE, ask = TRUE)
x |
the directory to be checked and created if necessary |
make |
should the directory be created if it does not already exist? default=TRUE |
verbose |
should responses be sent to the console? default=TRUE |
ask |
should confirmdir ask whether to create the directory or not? default = TRUE. Set to FALSE if running a script rather than working interactively. |
nothing but it can create a directory
x <- tempdir()
confirmdir(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.