convert_crlf: convert crlf to lf in Windows

Description Usage Arguments Details Author(s) See Also Examples

View source: R/convert_crlf.R

Description

Rewrite a file and substitute LF for CRLF.

Usage

1
convert_crlf(infile)

Arguments

infile

File to be converted

Details

LF is Unix. Note that writeChar, writeLines, and other options don't work (as far as I can tell). Using cat on a wb file connection is the key.

Author(s)

Gene Leynes

See Also

cat, readLines, file

Examples

1
2
3
		## NOT RUN:
	# files <- list.files(".", recursive = T, full.names = T)
	# sapply(files, convert_crlf)

geneorama/geneorama documentation built on Oct. 17, 2020, 12:35 a.m.