[R-SIG-Mac] Tcl/Tk

Bill Northcott w.northcott at unsw.edu.au
Tue Oct 3 01:09:19 CEST 2006


On 02/10/2006, at 8:00 PM, Ingo wrote:
> sorry, even when I run R from the X11 terminal, affylmGUI()  
> wouldn't find BWidget or Tktable (even though I have installed them  
> a hundred times).
>
> What now?
>
> Ingo
> On 02/10/2006, at 12:06 PM, Bill Northcott wrote:

Hi Ingo

I am moving this to r-sig-mac where it can benefit others.

Can you please let us know what you have installed and also post the  
session output.  So we can see what is going on.

Bill
>
>
>> Hi Ingo
>>
>> You can run an xterm in X11 and launch R from that.  Then of  
>> course library() loads packages.  See the standard R documentation.
>>
>> However, xterm is awful clunky compared to Terminal.app.  You can  
>> use Terminal as long as X11 is running, the DISPLAY environment  
>> variable is defined and R or whatever is in the PATH.  If you are  
>> using the default bash shell try the following in a terminal window:
>>
>> PATH=$PATH:/usr/X11R6/bin
>> export PATH
>> DIPLAY=:0.0
>> export DISPLAY
>> xeyes &
>> R
>>
>> You should have a set of XEyes in the top left and an R prompt in  
>> the Terminal shell.  Then read man bash about how you can set this  
>> environment up automatically.
>>
>> Have fun
>> Bill
>>
>> On 02/10/2006, at 11:09 AM, Ingo wrote:
>>
>>
>>> Thanks for the info, Bill.
>>>
>>> I'm not an X11 expert.  How do I launch packages from a command  
>>> line in X11 (your version "a").
>>>
>>> Regards,
>>>
>>> Ingo
>>>
>>> On 01/10/2006, at 12:38 PM, Bill Northcott wrote:
>>>
>>>
>>>> On 30/09/2006, at 8:00 PM, Rob J Goedman wrote:
>>>>
>>>>> Thanks for catching this question. I'd missed Ingo's original  
>>>>> email.
>>>>>
>>>>> Rcmdr does need X.11 and Tcl/Tk, although it uses the versions  
>>>>> that
>>>>> come with Mac OS 10.4. Hence, as Alex indicates, there is no  
>>>>> need to
>>>>> separately install these.
>>>>>
>>>>> Ingo, if you can't get it to work using John's link, let me know
>>>>> where you get stuck.  R-Sig-Mac is an alias dedicated to Mac OS
>>>>> specific questions.
>>>>>
>>>>
>>>> 1.  R-sig-mac is the place to go for these sorts of questions.   
>>>> This issue is being discussed there right now.
>>>>
>>>> 2.  The instructions at http://socserv.socsci.mcmaster.ca/jfox/ 
>>>> Misc/Rcmdr/installation-notes.html are not correct and will  
>>>> mislead you.
>>>>
>>>> 3.  The problems with Tcl/Tk are caused by the nice Aqua GUI.   
>>>> The tcl/tk package or any of its dependencies such as Rcmdr can  
>>>> be built on MacOS in one of two ways:
>>>>       a.  use the Apple included (in 10.4.x) AquaTk.
>>>>       b.  use an X11 version of Tk
>>>>
>>>> Packages built as a. cannot be run from within the R GUI but  
>>>> will launch happily from a command line.  The problem is that  
>>>> AquaTk thinks it is the only GUI for the app and fights with the  
>>>> R GUI for possession of the menu bar and system events.  They  
>>>> will work if you run R from a shell instead of the GUI.
>>>>
>>>> Packages built as b. can be run from inside the R GUI.  So this  
>>>> is the standard for the CRAN binary distributions.
>>>>
>>>> The current R binary (2.3.1) includes an X11 Tcl/Tk.  Make sure  
>>>> that it is installed.
>>>>
>>>> Bill Northcott
>>>>
>>
>
>
>



More information about the R-SIG-Mac mailing list