pkgutils
package from CSAN (Comprehensive S-PLUS Archive Network).
pkgutils is required in order to download, install and create other S-PLUS packages.
install.pkgutils(url="http://spotfire.tibco.com/csan/binary/lib", update=TRUE, global=FALSE)
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.
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
.
install.pkgutils
has no useful return value.
pkgutils
package is installed in the library subdirectory of the S-PLUS home directory, SHOME/library.
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.
# 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)