This function removes CF line endings from a text file and writes the processed file in the working directory.

crlrem( filename1, filename2 )

Arguments

filename1

Name of the original file (possibly with CF line endings)

filename2

Name of the processed file (without CF line endings)

Author

This is code by Dirk Eddelbuettel copied from https://stat.ethz.ch/pipermail/r-devel/2010-September/058480.html

Examples

if (FALSE) {
filename1 <- "rm.arraymult__0.02.cpp"
filename2 <- "rm.arraymult__0.03.cpp"
crlrem( filename1, filename2 )}