ore_file: Use a file as a text source

Description Usage Arguments Value See Also

Description

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

Usage

1
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 Nov. 2, 2021, 5:08 p.m.