View source: R/vd_empty_subfolders.R
| vd_empty_subfolders | R Documentation |
Validate Which Folders Contain CSVs
vd_empty_subfolders(path, ...)
path |
path to project directory |
... |
ignored. |
Returns a list of validation results.
dir_name <- file.path(tempdir(), "delete_me")
dir.create(dir_name)
dir(dir_name)
vd_empty_subfolders(dir_name)
sub_dirs <- file.path(dir_name, c('courses', 'students', 'faculty'))
lapply(sub_dirs, dir.create)
lapply(sub_dirs, dir.exists)
write.csv(mtcars, file=file.path(sub_dirs[3], 'mtcars.csv'))
dir(dir_name, recursive=TRUE, include.dirs = TRUE, full.names = TRUE)
dir(dir_name, include.dirs = TRUE, full.names = TRUE)
vd_empty_subfolders(dir(dir_name, include.dirs = TRUE, full.names = TRUE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.