read_file: Brute force file reader that is not concerned with file...

Description Usage Arguments Details Value

View source: R/supertinyicons.R

Description

readLines() in combination with unz() fails o read the last line of a file if it does not end in a CR/LF. I haven't found a workaround besides a manual read loop like below.

Usage

1
read_file(conn)

Arguments

conn

connection. For svgparser this is always an unz() connection to the zipped version of the icon set

Details

This function reads all character in a file regardless of line endings or file endings.

Value

single string representing file contents


coolbutuseless/svgparser documentation built on Dec. 26, 2021, 12:03 a.m.