[Rcpp-devel] CRLF to LF warning
Marie Auger-Methe
marie.augermethe at gmail.com
Mon Apr 23 18:36:52 CEST 2012
Hi,
I'm a windows user and I'm trying to make a package using
Rcpp.package.skeleton. When I check my package using R CMD check, I get
the warning:
Found the following sources/headers with CR or CRLF line endings:
src/rcpp_hello_world.h
Some Unix compilers require LF line endings.
I get this warning even when produce a package skeleton using the
following code:
library(Rcpp)
Rcpp.package.skeleton("m1p")
I get more files having this issue, including .cpp files when I start
editing them with Notepad, Wordpad or RStudio.
I'm not sure how to fix this problem, I've tried to use the following
command in Command Prompt:
tr -d '\r' < rcpp_hello_world.h >> rcpp_hello_world.h
But it's not quite working.
I'm not sure whether I can ignore this warning or not, especially since
I will use my package on a Unix machine.
Many thanks,
Marie
More information about the Rcpp-devel
mailing list