Skip to content

can't get the quartz window to the background

2 messages · Tamas K Papp, Jan de Leeuw

#
question, which was about Quartz not working properly when called from
a command-line/Emacs-inferior R process, only from R.app (the Quartz
windows becomes "passive", you cannot select or resize it).

I wonder if anybody has a solution to this, whether the issue is known
and if somebody knowledgeable would please fix this for the next
release.  I didn't want to post a bug report myself.

Thanks

Tamas
On Sun, Sep 12, 2004 at 05:59:58PM -0500, Ulises Mora Alvarez wrote:

            
#
Yes, this is the famous SetForegroundProcess problem. There
is a way around it that does not involve changing the R sources.

One simple version of this is to download my R from
http://gifi.stat.ucla.edu/pub, although that computer is currently down.
because of our move.

The other is to apply the resourcefork hack.

1. Install Aqua Tcl/Tk and recompile R using this Tcl/Tk, configuring  
with

configure  
--with-tcl-config=/Library/Frameworks/Tcl.framework/tclConfig.sh  
--with-tk-config=/Library/Frameworks/Tk.framework/tkConfig.sh  
--enable-R-shlib --with-aqua --with-blas='-framework vecLib'  
--with-lapack TCLTK_LIBS='-framework Tcl -framework Tk'  
TCLTK_CPPFLAGS='-I/Library/Frameworks/Tcl.Framework/Headers  
-I/Library/Frameworks/Tk.Framework/Headers'

2. Go to

/Library/Frameworks/R.framework/Resources/bin/exec and say

sudo /Developer/Tools/Rez -t APPL Carbon.r -o R

same in Library/Frameworks/R.framework/Resources/bin

3. When you start R from terminal or emacs, first load the tcltk  
library.
You can put this in R.profile, so it's done automatically.

This amounts to borrowing the Aqua Tcl/Tk event loop to run R as
a Classic (Tcl/Tk) application.



Now you're set
On Sep 22, 2004, at 11:44 AM, Tamas K Papp wrote:

            
===
Jan de Leeuw; Professor and Chair, UCLA Department of Statistics;
Editor: Journal of Multivariate Analysis, Journal of Statistical  
Software
US mail: 8125 Math Sciences Bldg, Box 951554, Los Angeles, CA 90095-1554
phone (310)-825-9550;  fax (310)-206-5658;  email: deleeuw@stat.ucla.edu
homepage: http://gifi.stat.ucla.edu
   
------------------------------------------------------------------------ 
-------------------------
           No matter where you go, there you are. --- Buckaroo Banzai
                    http://gifi.stat.ucla.edu/sounds/nomatter.au