R/dir_clean.R

dir.clean <- function(directory) {
    files <- dir(directory)
    ## Se ci sono file, cancellali
    length(files) == 0 ||
        file.remove(file.path(directory, files))
    
}

Try the yapomif package in your browser

Any scripts or data that you put into this service are public.

yapomif documentation built on May 2, 2019, 4:51 p.m.