ore_file: Use a file as a text source

ore_fileR Documentation

Use a file as a text source

Description

Identify a file path to be used as a text source for a subsequent call to ore_search.

Usage

ore_file(path, encoding = getOption("ore.encoding"), binary = FALSE)

Arguments

path

A character string giving the file path.

encoding

A character string giving the encoding of the file. This should match the encoding of the regular expression used in a call to ore_search.

binary

A logical value: if TRUE, the file will be search bytewise, and encoding will be fixed to be "ASCII".

Value

A string of class "orefile", with the encoding and binary arguments stored as attributes.

See Also

ore_search for actually searching through the file.


ore documentation built on Jan. 17, 2023, 1:10 a.m.