Learn R Programming

ore (version 1.7.4.1)

ore_file: 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)

Value

A string of class "orefile", with the encoding and

binary arguments stored as attributes.

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".

See Also

ore_search for actually searching through the file.