This is a currently legal way to do it.
I do not expose it in the documented interface because I do now want
to promise that it will stay this way.
I also think that there are not too many situations where you wout
want to change the server as part of the application.
And there is a much more versatile way of dealing with different
servers.
RServerManager and RServerManagerAdmin
On Aug 4, 2008, at 8:24 AM, <[EMAIL PROTECTED]> <[EMAIL PROTECTED]
> wrote:
Hi Ryan,
Im not sure if this is really allowed(!) but the following VBA code
selects the local background server option:
Call SaveSetting("RExcel", "Server", "ServerType", 3)
Make sure R server is not running before executing this command.
To resume with local foreground server use:
Call SaveSetting("RExcel", "Server", "ServerType", 1)
Ive tested (very simple test) this on the latest version of
RandFriends and it seems to work ok.
Perhaps Erich may be able to point out some reasons why this may not
be an acceptable method to change server types.
Regards,
Wayne
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
]On Behalf Of [EMAIL PROTECTED]
Sent: 21 July 2008 22:40
To: rcom-l@mailman.csd.univie.ac.at
Subject: [Rcom-l] Option to start RExcel in foreground and background
Is it possible in my VBA code to start the RExcel session in either
foreground or background mode based on a parameter, and that ignores
the setting of the user. An example pseudo-code would be:
RInterface.StartRServer("foreground") or
RInterface.StartRServer("background")
I once saw how do to this on the web, but lost the location of the
information.
Thanks,
Ryan Sheftel
_______________________________________________
Rcom-l mailing list
Rcom-l@mailman.csd.univie.ac.at
http://mailman.csd.univie.ac.at/mailman/listinfo/rcom-l
More information (including a Wiki) at http://rcom.univie.ac.at
Erich Neuwirth
Didactic Center for Computer Science and Institute for Scientiic
Computing
University of Vienna
_______________________________________________
Rcom-l mailing list
Rcom-l@mailman.csd.univie.ac.at
http://mailman.csd.univie.ac.at/mailman/listinfo/rcom-l
More information (including a Wiki) at http://rcom.univie.ac.at