From ripley at stats.ox.ac.uk  Fri Jul 18 14:49:58 2003
From: ripley at stats.ox.ac.uk (Prof Brian D Ripley)
Date: Fri Jul 18 14:53:33 2003
Subject: [Rd] Strategies for S-PLUS compatibility?
In-Reply-To: <32pfhvchub55ql2a7j6u39m747tp53bheq@4ax.com>
Message-ID: <Pine.WNT.4.44.0307181344150.3004-100000@gannet.stats.ox.ac.uk>

On Fri, 18 Jul 2003, Duncan Murdoch wrote:

> I'd like to give a copy of an R package to someone using S-PLUS.  It
> doesn't just run as-is, it'll need changes.  Has anyone written any
> general guidelines on ways to port in that direction?

This depends a lot on what `S-PLUS' is (Unix/Windows, 3.4/4.x/2000/5.x/6.x
are all different).  My best shot is to refer to `S Programming' about
constructing a package under the appropriate S-PLUS section.

If it's a recent version of S-PLUS, you should convert the help files to
Ssgm with Rdconv rename .R files to .q and uses a single-level
directory structure.  Beyond that it is a matter of experience and
trial-and-error: if C is involved it is essential to have header files
declaring (correctly) all entry points used.

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


[Rd] Strategies for S-PLUS compatibility?
Prof Brian D Ripley