file_string: Read a text file and concatenate the lines by "\n"

Description Usage Arguments Value Examples

View source: R/io.R

Description

The source code of this function should be self-explanatory.

Usage

1

Arguments

file

Path to a text file (should be encoded in UTF-8).

Value

A character string of text lines concatenated by '\n'.

Examples

1
xfun::file_string(system.file("DESCRIPTION", package = "xfun"))

yihui/xfun documentation built on Dec. 12, 2018, 10:49 p.m.