cqp_registry: The CQP registry

Description Usage Arguments Details Value Author(s) Source References See Also Examples

Description

Setting the CQP registry for rcqp.

Usage

1
2

Arguments

path

(string) the full path of the registry directory.

Details

Corpora are declared in files located in a directory called registry (see CWB documentation for more details). One of the mechanisms provided by CWB in order to set the path of the registry directory is to define the environment variable CORPUS_REGISTRY.

In rcqp, the CORPUS_REGISTRY environment variable is first read. If it is not set, rcqp tries to use the default registry directory, which varies according to your system (on most Unixes, it is ‘/usr/local/share/cwb/registry’; on Windows, it is ‘C:\CWB\Registry’). If this default directory does not exist, rcqp cannot proceed further. At this point, you can use the cqi_setRegistry function to specify the path of the registry directory.

The path passed to the cqi_setRegistry function must exist. Note that, once it is set, the path of the registry may not be changed.

In order to set the CORPUS_REGISTRY variable, you can

Value

cqi_getRegistry returns a vector with the path of the registry directory if it has been set, otherwise the NULL string. cqi_setRegistry does not return anything.

Author(s)

Bernard Desgraupes - bernard.desgraupes@u-paris10.fr - University Paris-10.
Sylvain Loiseau - sylvain.loiseau@univ-paris13.fr - University Paris-13.

Source

The IMS Open Corpus Workbench (CWB) at http://cwb.sourceforge.net/

References

http://cwb.sourceforge.net/documentation.php

See Also

cqi_list_corpora, cqi_list_subcorpora, cqi_query.

Examples

1
2
3
4
5
## Not run: 
Sys.setenv(CORPUS_REGISTRY="/users/vhugo/cwb/registry")
cqi_setRegistry("/users/vhugo/cwb/registry")

## End(Not run)

rcqp documentation built on March 18, 2018, 1:54 p.m.