S-PLUS Version Number

DESCRIPTION:

Returns the version of the currently running S-PLUS.

USAGE:

getSversion()

VALUE:

an object of class "package_version" giving the complete version number of the S-PLUS that is running.

DETAILS:

The pkgutils library must be installed because the class "package_version" and its methods are defined there. getSversion is called by functions in the pkgutils library.

This function emulates R's getRversion function.

SEE ALSO:

, , , (in pkgutils library).

EXAMPLES:

library(pkgutils)
getSversion()$major  # get the major version number
# compare version numbers
if (getSversion() > '8.1.0') cat("higher\n") else cat("lower\n")