Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

WPM

Weka Package Manager


Description

Manage Weka packages.

Usage

WPM(cmd, ...)

Arguments

cmd

a character string specifying the action to be performed. Must be one of "refresh-cache", "list-packages", "package-info", "install-package", "remove-package", "toggle-load-status" or "load-packages" (or a unique abbreviation thereof).

...

character strings giving further arguments required for the action to be performed. See Details.

Details

Available actions and respective additional arguments are as follows.

"refresh-cache"

Refresh the cached copy of the package meta data from the central package repository.

"list-packages"

print information (version numbers and short descriptions) about packages as specified by an additional keyword which must be one of "all" (all packages the system knows about), "installed" (all packages installed locally), or ("available" (all known packages not installed locally), or a unique abbreviation thereof.

"package-info"

print information (metadata) about a package. Requires two additional character string arguments: a keyword and the package name. The keyword must be one of "repository" (print info from the repository) or "installed" (print info on the installed version), or a unique abbreviation thereof.

"install-package"

install a package as specified by an additional character string giving its name. (In principle, one could also provide a file path or URL to a zip file.)

"remove-package"

remove a given (installed) package.

"toggle-load-status"

toggle the load status of the given (installed) packages.

"load-packages"

load all installed packages with active load status.

Note

Weka stores packages and their information in the Weka home directory, as given by the value of the environment variable WEKA_HOME; if this is not set, the ‘wekafiles’ subdirectory of the user's home directory is used. If this Weka home directory was not created yet, WPM() will instead use a temporary directory in the R session directory: to achieve persistence, users need to create the Weka home directory before using WPM().

Examples

## Not run: 
## Start by building/refreshing the cache.
WPM("refresh-cache")
## Show the packages installed locally.
WPM("list-packages", "installed")
## Show the packages available from the central Weka package
## repository and not installed locally.
WPM("list-packages", "available")
## Show repository information about package XMeans.
WPM("package-info", "repository", "XMeans")

## End(Not run)

RWeka

R/Weka Interface

v0.4-43
GPL-2
Authors
Kurt Hornik [aut, cre] (<https://orcid.org/0000-0003-4198-9911>), Christian Buchta [ctb], Torsten Hothorn [ctb], Alexandros Karatzoglou [ctb], David Meyer [ctb], Achim Zeileis [ctb] (<https://orcid.org/0000-0003-0918-3766>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.