Answers for "create directory from r"

R
1

create folder in r

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")
Posted by: Guest on September-21-2021
0

r make directory

dir.create(file.path(mainDir, subDir), showWarnings = FALSE)
Posted by: Guest on January-21-2021

Browse Popular Code Answers by Language