R/rep_windows_path.R

Defines functions rep_windows_path

Documented in rep_windows_path

#' Converts a windows path from clipboard, turning backslash into forward slash
#'
#' Inspired by similar function from user Tom from stackoverflow
#' @keywords windows
#' @export

rep_windows_path <- function() {

  x = clipr::read_clip()
  out = gsub('\"', "", x, fixed = TRUE)
  out = gsub("\\", "/", out, fixed = TRUE)
  out

}
matthiaskaeding/mt documentation built on Feb. 25, 2022, 10:24 a.m.