R/repath.R

Defines functions repath

Documented in repath

#' Convert Windows paths -- \ to /
#' @keywords windows path conversion
#'
repath <- function() {
  cat('Paste windows file path and hit RETURN twice')
  x <- scan(what = "")
  xa <- gsub('\\\\', '/', x)
  writeClipboard(paste(xa, collapse=" "))
  cat('Here\'s your de-windowsified path. (It\'s also on the clipboard.)\n', xa, '\n')
}
johnfrye/fryeR documentation built on Dec. 28, 2021, 6:20 p.m.