CSAN, the Comprehensive S-PLUS Archive Network, provides data analysis and statistical methods to the community of S-PLUS users. The methods are provided as self contained software packages that can be loaded into S-PLUS.

Note: The S-PLUS package system is a new feature in S-PLUS 8.0. It is not likely that any of the packages from CSAN will work in versions of S-PLUS prior to S-PLUS 8.0.

TIBCO Spotfire S+ Windows Tools Requirements

TIBCO Spotfire S+® for Windows® users must install additional software components to build and install packages from source code. This software is available for free download from the sites listed below.

NOTE  You do not need any of this additional software if you are only installing packages from CSAN.


PACKAGE REQUIREMENTS

Perl

The scripts for creating, building, and installing packages from source are written in the Perl scripting language. We recommend, and have tested with, the Perl for Windows implementation from ActiveState. To download ActiveState Perl, browse to the following URL:

http://www.activestate.com/Products/Download/Download.plex?id=ActivePerl

Microsoft HTML Help Workshop

To create compiled help (CHM) files for your package, you need HTML Help Workshop. Compiled Help created with HTML Help Workshop is the only help format supported in S+ packages. To download HTMLHelp Workshop, browse to the following URL, and then search for HTML Help Workshop:

http://www.microsoft.com/downloads/

Microsoft's HTML Help Workshop is available only for 32-bit Windows, but the 32-bit version is sufficient for compiling 64-bit packages.

Unix Tools

If you are starting with a package source archive that has a tar.gz extension, you need tar and gzip utilities to unpack the archive. The Cygwin tools, a Linux®-like environment for Windows, contains both utilities. To download the Cygwin tools, browse to the following URL:

http://www.cygwin.com/

An alternative to Cygwin is a collection of useful tools (including the required tar and gzip utilities) created for building packages in R. You can use this collection of tools with S+. The Rtools installer now includes both MinGW gcc versions 3.4.5 (used for R versions 2.5.x) and 4.2.1 (used for R 2.6.x and later), as well as Vanilla Perl. See the Rtools.txt file for the latest information.

tools.zip and R_Tcl.zip are no longer being distributed, now that they have been merged into the Rtools installer.

Compilers for 32-bit Windows

You must have a C/C++ compiler if your package includes C or C++ code.

The S+ package system currently supports the Microsoft Visual C++® compiler. You might already have the Microsoft Visual C++ compiler installed. If not, you can install Visual C++ 2005 Express Edition® (which is free), by browsing to the following URL:

http://msdn.microsoft.com/vstudio/express/visualc/

S+ supports Fortran code compiled with Microsoft Visual Fortran®. At this time, there is no free version of Visual Fortran available.

If your package contains Java code, you need the 32-bit version of the Java Development Kit ( JDK), available on the Java web site.

The file vcvars32.bat, created when the Visual C++ compiler is installed, should set the necessary compiler variables. You can find this file in the bin subdirectory in your Visual C++ installation. Run vcvars32.bat from the cmd shell window every time before you run any package creation script.

Compilers for 64-Bit Microsoft Windows®

The latest version of Visual C++® 2010 Express Edition can support 64-bit compilation, but also it requires installing the Windows Software Development Kit (SDK), available for free from the Microsoft download website.

http://msdn.microsoft.com/en-us/library/ms717422.aspx

After installing the SDK, use the following script to set the required environment variables to support 64-bit compilation:

"C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.Cmd" /x64

Access to Windows Tools

For the S+ package build and install scripts to function properly, you must put the tools listed above in your path after you have installed them.

  1. From the Start menu, click Run.
  2. In the text box, type cmd, and then click OK.
  3. From the cmd shell window, you can check to make sure the tools are working by trying the following commands:
    • perl --version
    • tar --help
    • gzip --help
    • hhc /help
  4. If you are using the Visual C++ compiler, type the following: cl /help
  5. In addition, set the following environment variables in the appropriate directories in your Visual C++ installation:
    • LIB
    • INCLUDE