A simple function to determine the appropriate newline string for a given operating system.
platform.newline(os = .Platform$OS.type)
Name of the operating system. Defaults to .Platform$OS.type
For Windows, this should return '\r\n'
, whereas for
other operating system it will return '\n'
.
See also file.type
.