Download and install the pkgutils package from CSAN

DESCRIPTION:

This function downloads and installs the pkgutils package from CSAN (Comprehensive S-PLUS Archive Network). pkgutils is required in order to download, install and create other S-PLUS packages.

USAGE:

install.pkgutils(url="http://spotfire.tibco.com/csan/binary/lib",
    update=TRUE, global=FALSE)

OPTIONAL ARGUMENTS:

url
a character string that specifies the URL for the location of the platform specific files containing the pkgutils package.
update
a logical value. If FALSE the pkgutils package will be downloaded and installed only if not already present in some S-PLUS library directory. If TRUE the pkgutils package will be downloaded and installed even if one is already present. The old pkgutils package will be renamed and you can delete it to free up disk space.
global
a logical value. If FALSE the pkgutils package will be installed in the user-specific library, file.path(Sys.getenv("S_USER_APPDIR_DATA", "library")). Otherwise it will be installed in the global Splus library directory, file.path(Sys.getenv("SHOME"), "library"). You must have sufficient permission to add files to Sys.getenv("SHOME") if you use global=TRUE.

VALUE:

install.pkgutils has no useful return value.

SIDE EFFECTS:

The pkgutils package is installed in the library subdirectory of the S-PLUS home directory, SHOME/library.

DETAILS:

Functions from the curl package are used to download the platform specific file containing the pkgutils package. That file is installed into the library subdirectory of the S-PLUS home directory, SHOME/library.

You must be connected to the Internet.

If you use global=TRUE you must have permission to write to the SHOME/library directory.

Each user needs to execute install.pkgutils only once after installing S-PLUS. If global=TRUE then only the Splus administrator needs to execute install.pkgutils.

On UNIX/Linux systems, the pkgutils package can be installed after the installation of S-PLUS by executing the shell script INSTALL.PKGUTILS in the S-PLUS installation directory.

SEE ALSO:

Comprehensive S-PLUS Archive Network website: http://spotfire.tibco.com/csan
Read the Guide to Packages manual for more details.
and functions and located in the pkgutils package.

EXAMPLES:

# Install and attach the pkgutils package
install.pkgutils()
library(pkgutils)
# List the available packages
available.packages()
# Install the rpart package
install.packages("rpart")
library(rpart)