5

I have a new mac and have downloaded ESS-emacs and have been running R. But it does not produce any plots with plot() pie() or hist().

I have tried show(), X11() and pdf() but none of them work. The R process actually ends when I try this for example:

plot(1:10)

Process R finished at Sat Feb 23 21:39:08 2013

Rudolph
  • 105
  • 1
  • 6

2 Answers2

3

new macs don't come with X11. You need to install XQuartz.

Zach
  • 996
  • 12
  • 25
1

When I run ESS/R on a mac, plot(1:10) should bring up a plot in a Quartz window. You shouldn't need to resort to x11(). I like the Quartz driver as it allows you to navigate through the history of plots, see the Quartz menu of the R application.

To see if your R has support for Quartz, type capabilities() and see what it says for 'aqua'.

Stephen Eglen
  • 591
  • 2
  • 15
  • Running `capabilities` from within Emacs/ESS also crashes. Running it from within the Mac version of R displays a prompt to navigate to the XQuartz website. – SabreWolfy May 21 '14 at 08:53
  • When you say it "crashes" do you mean Emacs is killed? Or, just that the *ESS* buffer becomes unresponsive? (IN which case does C-g help?) – Stephen Eglen Jun 10 '14 at 16:14