Learn R Programming

polmineR (version 0.7.4)

RegistryFile-class: Read, parse and modify registry file.

Description

Read, parse and modify registry file.

Arguments

corpus

name of the CWB corpus

new

a new value to set

filename

a filename

package

name of a package

registry

directory of the registry (defaults to CORPUS_Registry environment variable)

Fields

registryDir

registry directory

encoding

corpus encoding

txt

registry as character vector

pAttributes

p-attributes

properties

corpus properties

id

corpus id

home

home directory

name

corpus name

info

path to info file

Methods

getEncoding()

Get the encoding.

getHome()

Get the home directory of a corpus.

getId()

Get the id of a corpus.

getInfo()

Get path to the info file.

getName()

Get the name of a corpus.

getPAttributes()

Get the pAttributes.

getProperties()

Get corpus properties.

getSAttributes()

Get the sAttributes.

initialize(corpus = NULL, registry = Sys.getenv("CORPUS_REGISTRY"), package = NULL, filename = NULL)

Initialize a new RegistryFile object.

parse()

Parse the registry file.

read()

Read file from disc, as character vector in field 'txt'.