cwbtools (version 0.1.0)

cwb_install: Utilities to install Corpus Workbench.

Description

Some steps for encoding corpora can be performed by calling CWB utilities from the command line, which requires an installation of the CWB, either as part of the CWB package, or using the default installation location of the CWB.

Usage

cwb_install(url_cwb = cwb_get_url())

cwb_get_url()

cwb_get_bindir()

cwb_is_installed()

Arguments

url_cwb

The URL from where the CWB can be downloaded.

Details

cwb_get_url will return the URL for downloading the appropriate binary (Linux / macOS / Windows) of the Corpus Workbench.

cwb_get_bindir will return the directory where the cwb utility programs reside. If cwb_install() has been used to install the CWB, the function returns the directory within the cwbtools package. Alternatively, a check for a local installation is performed.

cwb_is_installed will check whether the CWB is installed.