R/copyWinpath.R

Defines functions copyWinpath

Documented in copyWinpath

#' copyWinpath
#'
#' write converted windows path (from \ to /) to clipboard
#'
#' @param sub Optional gsub to replace '\\' with in converted path. Set to '\\\\' to ignore.
#'
#' @export

copyWinpath <- function(sub = "/"){
  path <- pasteWinpath(sub)
  utils::writeClipboard(path)
  return(path)
}

#' @rdname copyWinpath
#' @export
copyURL <- copyWinpath
brandonsie/bms documentation built on Nov. 17, 2023, 11:38 a.m.