platform.newline {knitrdata} | R Documentation |
A simple function to determine the appropriate newline string for a given operating system.
platform.newline(os = .Platform$OS.type)
os |
Name of the operating system. Defaults to |
For Windows, this should return '\r\n'
, whereas for
other operating system it will return '\n'
.
David M. Kaplan dmkaplan2000@gmail.com
See also file.type
.