Question : create folder in r
Answered by : kwams-ahortor
dir.create ("<C:/.../folder_name>") #include full file path
#To add files to the folder
file.create ("C:/.../folder_name/new_csv_file.csv")
#To delete files
unlink ("C:/.../folder_name/new_csv_file.csv")
Source : | Last Update : Tue, 28 Sep 21
Question : r make directory
Answered by : ed
dir.create(file.path(mainDir, subDir), showWarnings = FALSE)
Source : https://stackoverflow.com/questions/4216753/check-existence-of-directory-and-create-if-doesnt-exist | Last Update : Thu, 28 Jan 21