Skip to content

Commit

Permalink
Line endings in 'src/init.c'
Browse files Browse the repository at this point in the history
Fix R CMD check warning on Windows:
Found the following sources/headers with CR or CRLF line endings:
  src/init.c
  • Loading branch information
stewid committed Mar 6, 2017
1 parent befed86 commit 91e40c8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tools/init.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ lines <- c(
" R_registerRoutines(info, NULL, callMethods, NULL, NULL);",
" R_useDynamicSymbols(info, FALSE);",
" R_forceSymbols(info, FALSE);",
"}")
"}",
"")

writeLines(lines, "src/init.c")
f <- file("src/init.c", "wb")
writeChar(paste0(lines, collapse = "\n"), f, eos = NULL)
close(f)

0 comments on commit 91e40c8

Please sign in to comment.