Skip to content
Prev 7301 / 15075 Next

Mac OS X R.app has trouble rendering certain fonts.

You can specify this by environment variables.  Note that R.app (as
all OS X apps) does not use values set in .bashrc / .profile, so the
easiest way is to put the following into your ~/.Rprofile file (create
it, if needed);

 Sys.setenv("R_INTERACTIVE_DEVICE" = "x11")
 Sys.setenv("R_DEFAULT_DEVICE" = "pdf")

This will use pdf as the plotting device when you run R CMD BATCH and
it will use X11 as device when you are in an interactive session.

Now, I don't know much about plotmath and the quartz device, but note
that I and many others vastly prefer the quartz device on the Mac, for
its very nice output (and I like its history feature).  But you seem
to have a need for X11....

Kasper
On Fri, Jul 2, 2010 at 3:43 PM, Carlo Tambuatco <oraclmaster at gmail.com> wrote: