Hi,
I have just resubscribed after a long absence so apologies if I
have missed discussion of this issue in recent posts.
We have built a customised gui and library inside S-PLUS for
a client. The gui is created in a customised function which
is called from .First.lib in the library. i.e. the customised
function calls guiCreate.
Now occasionally, the client does not want to use the gui but
run the customised library overnight on several datasets
in batch mode from a DOS script. I assume that when
S-PLUS is run in batch mode the internal gui functions are
not loaded. So of course our call to guiCreate in .First.lib
gives a fatal error in batch mode.
To get round this we have inserted
if(existsFunction("guiCreate")) etc. in .First.lib
as we found that a check on interactive() doesn't
help because it seems to be TRUE even in batch mode.
Is there a cleaner way to do this?
Cheers,
John.
_____________________________________________________________________
John Donnelly Accredited Statistician
CSIRO Mathematical and Information Sciences
Locked Bag 17, North Ryde, NSW 1670, Australia.
Building E6B, Macquarie University Sydney, Australia.
Phone: +61 2 9325 3213 Fax: +61 2 9325 3200
http://extra.cmis.csiro.au/John.Donnelly/index.htm
_____________________________________________________________________
|