Splus CMD SINSTALL --destdir dirName [files] Splus CMD DATAINSTALL --destdir dirName [files]
SINSTALL
will install all files
found in the current working directory having these extensions:
.q, .R, .ssc, .SSC, .S.
If names are omitted,
DATAINSTALL
will install all files
found in the current working directory having these extensions:
.txt, .TXT, .csv, .CSV, .q, .R, .ssc, .SSC, .S, .tab, .TAB, .Rdata, .rdata, .rda.
--clean-first
option is given, then
all objects are deleted from the .Data directory initially.
If file names are included on the command line, then the data or objects in
those files will be installed into the .Data directory of the destination directory.
If no file names are given, then all S-PLUS source files in the current
directory having the appropriate file extension, depending on whether
SINSTALL
or
DATAINSTALL
is being invoked, will be installed.
If a .Data directory already exists in the destination directory, it must be writable.
Currently, the
--clean-after
and
--no-clean-after
options are not implemented.
The
SINSTALL
and
DATAINSTALL
utilities are invoked from the operating
system's command line using the S-PLUS
CMD
utility.
These utilities are based on Perl code.
# re-install all the objects in the package, cleaning .Data first # (current working directory contains the package directory, myPkg) Splus CMD SINSTALL --destdir myPkg --clean-first myPkg/R/* Splus CMD DATAINSTALL --destdir myPkg myPkg/data/*
# install specific source files (current working directory is # the package directory) Splus CMD SINSTALL --destdir . R/func1.S R/func2.S
# re-install all the data objects in the package (current working # directory is the package's "data" directory) Splus CMD DATAINSTALL --destdir ..