[R] system in windows

Erich Neuwirth erich.neuwirth at univie.ac.at
Fri Mar 29 15:11:06 CET 2002


the problem is that i am not sure of the start
shell("start netscp6")
mechanism
works on all win32 platforms.
the "start" feature might be a property of later versons of win32.
the system(...) might have better chances of working on
all win32 platforms.





ggrothendieck at yifan.net wrote:
> 
> On my Windows 2000 system running R 1.4.1
> the following R command:
> 
>    shell("start netscp6")
> 
> launches Netscape.   Also this R command:
> 
>    shell("start iexpore")
> 
> launches Internet Explorer.
> 
> On 29 Mar 2002 at 1:36, Erich Neuwirth wrote:
> 
> > i want to call
> > "c:/Program Files/Netscape/Communicator/Program/netscape.exe"
> > with system
> > but
> > system("c:/Program Files/Netscape/Communicator/Program/netscape.exe")
> > does not work because of the blank.
> >
> > system('"c:/Program
> > Files/Netscape/Communicator/Program/netscape.exe"',wait=FALSE)
> > works exactly like i want.
> >
> > when i set
> > options(browser="c:/Program
> > Files/Netscape/Communicator/Program/netscape.exe")
> >
> > how can i manipulate the result of
> > getOption("browser")
> >
> > so that i get a string which will work with the system command?
> >
> >
> >
> >
> >
> > --
> > Erich Neuwirth, Computer Supported Didactics Working Group
> > Visit our SunSITE at http://sunsite.univie.ac.at
> > Phone: +43-1-4277-38624 Fax: +43-1-4277-9386
> >
> > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> > r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> > Send "info", "help", or "[un]subscribe"
> > (in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
> > _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> >

--
Erich Neuwirth, Computer Supported Didactics Working Group
Visit our SunSITE at http://sunsite.univie.ac.at
Phone: +43-1-4277-38624 Fax: +43-1-4277-9386

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list