How to Create Directory and File If It doesn’t Exist in R
When working with file systems, checking the directory or file existence is always better before commencing the operations. For a directory To create a directory, if it does not exist, use the dir.exists() function. After checking its existence, if it does not exist, you can use the dir.create() function to create a new directory with a specified … Read more