R Check if Directory Exists and Create if It does not (Programming Example)

preview_player
Показать описание

R Code:

main_dir <- "C:/Users/ ... Your Path ... /main_dir" # Set your working directory

sub_dir_exists <- "subdir_example" # Name of already existing folder
# Warning message:
# 'C:\Users\ ... Your Path ... \main_dir\subdir_example' already exists

sub_dir_new <- "subdir_new" # Name of new folder
Рекомендации по теме