R/unix2dos.R

Defines functions unix2dos

Documented in unix2dos

#' @rdname dos2unix
#'
#' @export

unix2dos <- function(file)
{
  txt <- readLines(file)
  con <- file(file, open="wb")
  writeLines(txt, con, sep="\r\n")
  close(con)
}

Try the TAF package in your browser

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

TAF documentation built on April 7, 2021, 5:06 p.m.