tests/test.write.fwf.eol.R

library(gdata)
saveto <- tempfile(pattern = "test.txt", tmpdir = tempdir())

write.fwf(x = data.frame(a=1:length(LETTERS), b=LETTERS),
          file=saveto, eol="\r\n")

Try the gdata package in your browser

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

gdata documentation built on Oct. 17, 2023, 1:11 a.m.