R/correct-path.R

# correct_path <- 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")
#   
# }
# # https://www.r-bloggers.com/stop-fiddling-around-with-copied-paths-in-windows-r/
rogiersbart/rtoolz documentation built on Aug. 20, 2020, 2:48 p.m.