View source: R/clone_dir_structure.R
clone_dir_structure | R Documentation |
Takes a directory and clones its structure elsewhere, but without copying files
clone_dir_structure(start_dir, end_dir)
start_dir |
a character vector with a path to an existing directory |
end_dir |
a character vector with a path to an existing directory |
Nothing, it will simply copy the directory subtree
dir.create("~/tmp/tmp2/tmp2.1", recursive = TRUE) dir.create("~/tmp/tmp3/tmp3.1", recursive = TRUE) dir.create("~/destination_dir") clone_dir_structure(start_dir = "~/tmp/", end_dir = "~/destination_dir/") dir()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.