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