s-news
[Top] [All Lists]

S-PLUS guiClose(): Response Summary

To: <s-news@lists.biostat.wustl.edu>
Subject: S-PLUS guiClose(): Response Summary
From: "Bill Osburn" <bosburn@sjrwmd.com>
Date: Wed, 16 Apr 2008 07:44:05 -0400
Importance: normal
Thread-index: AciftyzPr4h3zjYARF6sN/xt7xAQzg==
Thread-topic: S-PLUS guiClose(): Response Summary

Thanks – in all I received 6 responses.

 

I’ve elected to use the following for my purposes

 

for(i in 1:(length(dev.list()))) {

      dev.off(which = dev.cur())

}

 

The summarized responses were:

 

1.  Look at dev.off()

2.  guiSetOption( option.name="SaveGraphPrompt", value.string="F" ) then reset =“T” afterwards if desired

3.  create a function

writeGraphFile = function (graph, fname) {

  guiSave( "GraphSheet", Name = graph, FileName=fname)

  guiClose( "GraphSheet", graph)

  invisible()

  cat(paste("Graph",graph,"has been saved as",fname))

}

 

For instance

 

writeGraphFile(“GSD2”,”C:\test.sgr”)

 

<Prev in Thread] Current Thread [Next in Thread>
  • S-PLUS guiClose(): Response Summary, Bill Osburn <=