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

View source: R/io.R

file_stringR Documentation

Read a text file and concatenate the lines by '\n'

Description

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

Usage

file_string(file)

Arguments

file

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

Value

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

Examples

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

xfun documentation built on Nov. 2, 2023, 6 p.m.