platform.newline: Platform independent newline string

Description Usage Arguments Value Author(s) See Also

View source: R/utils.R

Description

A simple function to determine the appropriate newline string for a given operating system.

Usage

1

Arguments

os

Name of the operating system. Defaults to .Platform$OS.type

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.


dmkaplan2000/knitrdata documentation built on Nov. 6, 2021, 11:50 a.m.