R/dsstore.R

Defines functions rm_.DS_Store

Documented in rm_.DS_Store

#' Remove pesky .DS_Store files
#'
#' Recursively removes all .DS_Store files in working directory.
#'
#' @examples
#'
#' \dontrun{
#' rm_.DS_Store()
#' }
#'
#' @export
rm_.DS_Store <- function() {
  ds <- list.files(pattern = "\\.DS_Store$", recursive = TRUE, all.files = TRUE)
  unlink(ds)
  invisible()
}

Try the tfse package in your browser

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

tfse documentation built on May 2, 2019, 11:28 a.m.