Dear All I am very beginner in R I need to communicate between R programs. I have one R program for writing data in XML File. suppose I can execute same program in different R section for writing different XML files but another R program need to read these data after i wrote in XML file. Could you please suggest which is the best method for this type of communication in R Environment. Thanks in advance! Kind Regard W. Mathew -- Wesley C Mathew [[alternative HTML version deleted]]
wesley mathew wrote:> > I have one R program for writing data in XML File. > suppose I can execute same program in different R section for writing > different XML files but another R program need to read these data after i > wrote in XML file. >It is a bit unclear for me what you mean with "'R section", but the simplest way out would be to generate a shell batch file to run one program (Under windows) rterm.exe --no-save < writexml.r rterm.exe --no-save < thereport.r If you need to pass parameters to the report writer, you could use Sys.setenv Sys.getenv Dieter -- View this message in context: http://www.nabble.com/communication-of-R-Programs-tp25783067p25783954.html Sent from the R help mailing list archive at Nabble.com.
I don't understand the context of the question. Since the data is already in R, you should use it from within R. What is the reason for translating it to XML and then back? You take the risk of two levels of distortion. I am guessing that you want continuity of your work over multiple login sessions. One technique for continuity is to save your workspace at the end of each login. Do that by saying "yes" to the save question when you type q(). The next time you start R from the same directory, the saved workspace will be re-loaded. See ?q and ?save for details. Rich