s-news
[Top] [All Lists]

interacting between OpenOffice.org Writer and S-plus under Windows

To: s-news@lists.biostat.wustl.edu
Subject: interacting between OpenOffice.org Writer and S-plus under Windows
From: Tony Plate <tplate@blackmesacapital.com>
Date: Fri, 30 Apr 2004 12:10:07 -0600
I'm making available a set of macros and instructions for interactively communicating between OpenOffice.org Writer and S-plus under Windows. This enables one to something similar to what SWeave does, but in an interactive manner in a WISIWIG text document editor. The intention is to make it easy to create good research notes and reports with graphics included.

From the Overview section in the document:

--------------------------
This document contains macros, styles, and instructions for sending code from an OpenOffice.org document to S-plus, and getting graphics and results back from S-plus. It serves as a template, code and style repository, and instructions.

There are two basic types of interactions:

(1) Extract S-plus commands from a selected transcript in an OpenOffice.org Writer document (which may optionally include S-plus output), send those commands to S-plus, and replace the selected transcript with a new transcript containing the commands and new output. (Any old output that was in the transcript is discarded.)

(2) Get plots from a graphsheet device in the S-plus gui and insert them in the OpenOffice.org Writer document as embedded graphics objects.

The software included here is free software distributed under the GNU LGPL. For complete details of the licence, see the "Licences" section.

This set of macros works, but is far from completely robust. It is distributed in the hope that others may find it useful and be motivated to improve it, and to make to improvements available under the GNU LGPL. Please email bugs and enhancements to tplate@blackmesacapital.com.

These macros have been tested with OpenOffice.org 1.1.1 Writer and S-plus 6.1, running under Windows 2000.
-----------------------------

It might also be possible to get these macros working with other combinations of software and platforms, e.g., R, Linux, Solaris, Mac, etc. (The Windows-specific DDE parts of the code are actually pretty minor - presumably most everything else would stay the same.)

I'm not sure what the best way to distribute this document (with macros) is, as it is a binary file (an OpenOffice.org Writer document). For the time being I'll email it on request, and if there is any interest I'll put it on a website somewhere.

-- Tony Plate


<Prev in Thread] Current Thread [Next in Thread>
  • interacting between OpenOffice.org Writer and S-plus under Windows, Tony Plate <=