Data Mining Algorithms In R/Packages/RWeka/WPM

Description edit

Manage Weka packages.

Usage edit

WPM(cmd, ...)

Arguments edit

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

Further arguments required for the action to be performed.

Details edit

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.

"load-package" load a given package by adding its jars to the Java classpath.

Example edit

   WPM("list-packages", "installed")
   WPM("list-packages", "available")
   WPM("package-info", "repository", "XMeans")