read_file: Read a text file and strip out comments

Description Usage Arguments Value

View source: R/parser.R

Description

Read a text file and strip out comments

Usage

1
read_file(dataset_name, file_name, file_data = NULL, comment_char = "#")

Arguments

dataset_name

Dataset name, character

file_name

File name, character

file_data

File data, character vector; optional for testing

comment_char

Start-of-line comment character

Value

Contents of file, stripped of any comments, in a character vector.


bpbond/cosore documentation built on July 20, 2021, 3:17 p.m.