Splus CMD src2bin
--name and
--parent.
The default is the current working directory.
If your current working directory is the package directory, then none
of these arguments are necessary:
--directory
--name
,
--parent.
This utility does the following:
- S code from the package's "R" directory is installed.
- C, C++, and FORTRAN files located in the "src" directory are compiled,
and a shared (UNIX) or dynamic (Windows) library is created.
- Data objects from the "data" directory are installed.
- Help files in the "man" directory are formatted and installed.
All help file must be located in the "man" directory and be in the
.Rd format. Files having the ".sgml" extension will be ignored.
The
src2bin utility is invoked from the operating
system's command line using the S-PLUS
CMD
utility.
src2bin is based on Perl code.
pkgutils library).
# in S-PLUS, create package source
library(pkgutils)
package.skeleton("myPkg", list=c("func1", "func2", "dataA", "dataB"))
# from the OS command line: # - put C, C++ or FORTRAN code into the "src" directory # - edit help files skeletons in the "man" directory Splus CMD src2bin --name myPkg --clean-first
# in S-PLUS, install the package
library(myPkg, lib.loc=".")
objects("myPkg")