The object
.Platform is a list with various
components that provide information about the platform where this version
of S-PLUS was built. These components can be used to write portable S-PLUS
functions.
ARGUMENTS:
The named components of the list are:
OS.type
A character string giving the operating system, either "unix" or "windows".
file.sep
A character string giving the file separator used on this platform, for example "/".
dynlib.ext
A character string giving the file name extension for dynamically loadable
libraries, either ".dll" on Windows, or ".so" on most Unix and Linux systems.
GUI
A character string giving the type of GUI in use.
endian
A character string describing the endianness of the computer processor,
either "big" or "little".
pkgType
A character string giving the package type for this platform. Currently
the possible values are "source" on Unix and Linux platforms, or
"win.binary" on Windows. This gives the type of package to download and
install.
path.sep
A character string containing the path separator character, either ":" on
Unix or Linux, or ";" on Windows.
DETAILS:
This list is similar to R's
.Platform object
but includes an extra component,
path.sep.
SEE ALSO:
See
for more specific
platform information,
,
,
,
see
for arithmetic details.
EXAMPLES:
.Platform$pkgType # package type
# convert single string to list of directories
unpaste(getenv("PATH"),sep=.Platform$path.sep)