From ripley at stats.ox.ac.uk  Thu May 15 07:15:15 2008
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Thu, 15 May 2008 06:15:15 +0100 (BST)
Subject: [Rd] Reset an embedded R.dll
In-Reply-To: <op.ua5nbgtdolvcyz@arkanoid.garten>
References: <op.ua5nbgtdolvcyz@arkanoid.garten>
Message-ID: <alpine.LFD.1.10.0805150610180.16696@gannet.stats.ox.ac.uk>

On Wed, 14 May 2008, Bernd Schoeller wrote:

> Dear List,
>
> I am learning how to use the R.dll unter Windows to embed an R interpreter 
> into another programming language.
>
> What I would like to know, and I have not yet found an answer in the 
> documentation: is there a way to 'reset' the interpreter to bring it to the 
> state that it was directly after the call of the initialization routine?

Call the exit and initialization routines.  That will not completely reset 
things (it will not unload package DLLs for example), but it is the 
nearest that is provided.

-- 
Brian D. Ripley,                  ripley at 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 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



[Rd] Reset an embedded R.dll
Prof Brian Ripley