[R-SIG-Mac] newbie- launch X11 application from a R tcltk GUI

Simone Gabbriellini ogabbrie at tin.it
Sun Aug 21 12:59:20 CEST 2005


this is the one that works for me:

system("open-x11 /Applications/visone-1.0")

the fact is that if I have a mac os application (i.e. Safari.app)  
"open Safari.app" works, but with an X11 application as visone-1.0 I  
need "open-x11 visone-1.0".

many thanks to you all,
simone

Il giorno 21/ago/05, alle ore 01:06, Byron Ellis ha scritto:

> Oh, sorry, we meant "open" the OS X terminal command, not the  
> function inside R
>
> i.e. system("open /Applications/visone-1.0")
>
>
> On Aug 20, 2005, at 3:57 PM, Simone Gabbriellini wrote:
>
>
>> my last question (I swear)
>> I still have a problem with open,
>>
>> I create a connection
>> conn<-file("/Applications/visone-1.0", "r")
>>
>> then I try to open it
>>
>> open(conn)
>>
>> but nothing happens... :(
>>
>> thank you very much
>> simone
>>
>> Il giorno 21/ago/05, alle ore 00:39, Jan de Leeuw ha scritto:
>>
>>
>>
>>> depends on $PATH. if foo is in $PATH then open
>>> will work. open-x11 looks in /usr/X11R6/bin
>>> even if it's not  in $PATH
>>> On Aug 20, 2005, at 15:19 , Byron Ellis wrote:
>>>
>>>
>>>
>>>
>>>> Actually, for an X11 app, wouldn't it be "open-x11 foo" instead?
>>>>
>>>> On Aug 20, 2005, at 3:06 PM, Jan de Leeuw wrote:
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>> open foo
>>>>>
>>>>> On Aug 20, 2005, at 14:58 , Simone Gabbriellini wrote:
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> Dear List,
>>>>>> I'm developing a tcltk GUI with R tcltk package.
>>>>>> One of the function I want to put into my GUI is the ability to
>>>>>> launch an X11 application and I am wondering the command I  
>>>>>> need to
>>>>>> accomplish my task.
>>>>>>
>>>>>> thank you,
>>>>>> Simone
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> It was simple, but you know, it's always simple when you've done
>>>>>> it.
>>>>>>       -- Simone Gabbriellini (after solving a problem with a  
>>>>>> trick
>>>>>> suggested on the list)
>>>>>>          R-help (August 2005)
>>>>>>          fortune("Gabbriellini")
>>>>>>
>>>>>> _______________________________________________
>>>>>> R-SIG-Mac mailing list
>>>>>> R-SIG-Mac at stat.math.ethz.ch
>>>>>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>> ==========================================================
>>>>> Jan de Leeuw, 11667 Steinhoff Rd, Frazier Park, CA 93225,
>>>>> 661-245-1725
>>>>>                                   http://www.cuddyvalley.org/
>>>>> dunklen.mov
>>>>> ==========================================================
>>>>>                                       Und die Einen sind im  
>>>>> Dunkeln
>>>>>                                       Und die Andern sind im Licht
>>>>>                                       Doch man sieht nur die im
>>>>> Lichte
>>>>>                                       Die im Dunkeln sieht man
>>>>> nicht       (Brecht)
>>>>>
>>>>> _______________________________________________
>>>>> R-SIG-Mac mailing list
>>>>> R-SIG-Mac at stat.math.ethz.ch
>>>>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>> ---
>>>> Byron Ellis (ellis at stat.harvard.edu)
>>>> "Oook" -- The Librarian
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>> ==========================================================
>>> Jan de Leeuw, 11667 Steinhoff Rd, Frazier Park, CA 93225,  
>>> 661-245-1725
>>>                                  http://www.cuddyvalley.org/
>>> dunklen.mov
>>> ==========================================================
>>>                                      Und die Einen sind im Dunkeln
>>>                                      Und die Andern sind im Licht
>>>                                      Doch man sieht nur die im  
>>> Lichte
>>>                                      Die im Dunkeln sieht man
>>> nicht       (Brecht)
>>>
>>>
>>>
>>>
>>>
>>>
>>
>> It was simple, but you know, it's always simple when you've done it.
>>       -- Simone Gabbriellini (after solving a problem with a trick
>> suggested on the list)
>>          R-help (August 2005)
>>          fortune("Gabbriellini")
>>
>> _______________________________________________
>> R-SIG-Mac mailing list
>> R-SIG-Mac at stat.math.ethz.ch
>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>>
>>
>
> ---
> Byron Ellis (ellis at stat.harvard.edu)
> "Oook" -- The Librarian
>
>

It was simple, but you know, it's always simple when you've done it.
      -- Simone Gabbriellini (after solving a problem with a trick  
suggested on the list)
         R-help (August 2005)
         fortune("Gabbriellini")



More information about the R-SIG-Mac mailing list