createDirs | R Documentation |
This function creates a set of standard subdirectories ("data", "src", "output", "notebook") in the current working directory or in a specified parent directory.
createDirs(p = NULL)
p |
A character string specifying the path to the parent directory where subdirectories should be created. If 'NULL', the subdirectories will be created in the current working directory. Default is 'NULL'. |
The function creates directories as a side effect and returns 'NULL' invisibly.
dir.create
, file.path
# Create directories in the current working directory
createDirs()
# Create directories inside an existing parent directory
createDirs("project_folder")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.