[R-SIG-Mac] R hack

Tamas K Papp tpapp at Princeton.EDU
Sun Oct 24 19:10:19 CEST 2004


Thank you very much, this is really nice!

A minor glitch: if I don't open a quartz() window explicitly,

library(tcltk)
plot(1:5,1:5)

makes R segfault.  Do you experience this?

If I plot first, and plots appear in an x11() window, everything runs
smooth.  It also works if I open a quartz() window.

I installed batteries-included, did a

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

(this was on Friday), then installed the Hack.dmg on this.  Should I
reinstall everyhing from scratch?

Thanks

Tamas

On Sun, Oct 24, 2004 at 08:43:00AM -0700, Jan de Leeuw wrote:

> At
> 
> http://gifi.stat.ucla.edu/pub/Hack.dmg
> 
> you'll find a package which you can install over (after)  
> Batteries-Included
> It contains Tcl.framework, Tk.framework, and an alternative version
> of R.framework compiled with Tcl/Tk flags set to the Aqua version.
> 
> This is for people who a) want to use R from Emacs or Terminal, b)
> do not want to use X11, c) do want to use the Quartz device, d)
> do not insist on using the Cocoa GUI.
> 
> After you start R you have to do library(tcltk). This will open the
> R application in your dock (with a generic icon). If that works you
> will have a Quartz device you can interact with, and you can
> try everything with demo(tkdensity).
> 
> Your tcltk will not work anymore with the Cocoa R.app or with JGR
> after this, however. You cannot live in both worlds.
> 
> On Oct 24, 2004, at 7:02 AM, Tamas K Papp wrote:
> 
> >I tried it, nothing changes.
> >
> >I am not sure that my R has been compliled with the options given
> >below.  How can I check that?
> >
> >I am using R-2.0.0-Batteries-Included.dmg, 10-15-04.  It is compiled
> >with Tcl and Tk and the other options?  My /Library/Frameworks has
> >only PrintMeSSL.framework, R.framework, StuffIt.framework, should I
> >need anything else there?
> >
> >BTW, R-2.0.0-Batteries-Included is simply amazing.  Besides R, the
> >Emacs is the most consistent one I have seen on OS X.  Thank you very
> >much!
> >
> >Thanks,
> >
> >Tamas
> >
> >
> >On Thu, Oct 21, 2004 at 04:46:53PM -0700, Jan de Leeuw wrote:
> >
> >>The trick:
> >>
> >>cd /Library/Frameworks/R.framework/Resources/bin/exec
> >>sudo /Developer/Tools/Rez -t  APPL Carbon.r -o R
> >>
> >>This only works if R is compiled 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'
> >>
> >>i.e. with the Aqua version of Tcl/Tk, because that's where R gets the
> >>Apple CF event loop
> >>from. In addition, you get Aqua look and feel  for your tcltk library.
> >>
> >>The trick is worthwhile if you run R from Emacs (either CLI or X11 or
> >>Carbon)
> >>or from a Terminal window AND if you hate the look of X11 windows
> >>befouling
> >>your Mac. I thought I was the only person in that intersection.
> >>
> >>On Oct 21, 2004, at 3:21 PM, Tamas K Papp wrote:
> >>
> >>>On Thu, Oct 21, 2004 at 11:33:10PM +0200, stefano iacus wrote:
> >>>>quartz device can be used from Emacs (at least the carbon Emacs)
> >>>>But you need to apply Jan's trick to make quartz an interactive
> >>>>device.
> >>>
> >>>What is this trick?  Can I find a description somewhere?  Do I need  
> >>>to
> >>>recompile?
> >>>
> >>>Thanks,
> >>>
> >>>Tamas
> >>>
> >>>_______________________________________________
> >>>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; Distinguished 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 at 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
> >>
> >>---------------------------------------------------------------------- 
> >>--
> >>-------------------------
> >
> >
> ===
> Jan de Leeuw; Distinguished 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 at 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
> 
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac



More information about the R-SIG-Mac mailing list