Well, this looks like a grave problem.  Unfortunately your version of ESS
is not current, ... and this is important as the current version is
basically release candidate for  ESS 13.09-1 sometime next week.

For  M-x ess-version, I get        ess-version: 13.09-1 [svn: 5864
(2013-11-07)]

It could well be that the problem persists after you upgrade, but in that
case we would ask other Mac users (on ESS-help) to try reproducing your
problem.

Best regards,
Martin Maechler


On Thu, Nov 7, 2013 at 6:02 PM, Sam Steingold <sds@gnu.org> wrote:

> Hi
> When I run R from the command line, `plot(1:10,1:10)` works just fine.
> Under ESS any plot command results in R exiting:
>
> --8<---------------cut here---------------start------------->8---
> > > options(STERM='iESS', str.dendrogram.last="'", editor='emacsclient',
> show.error.locations=TRUE)
> > plot(1:10,1:10)
>
> Process R finished at Thu Nov  7 11:47:45 2013
> --8<---------------cut here---------------end--------------->8---
>
> However, if I explicitly call quartz to start the graphics, it works:
>
> --8<---------------cut here---------------start------------->8---
> > > options(STERM='iESS', str.dendrogram.last="'", editor='emacsclient',
> show.error.locations=TRUE)
> > quartz()
> > plot(1:10,1:10)
> > q()
>
> Process R finished at Thu Nov  7 11:56:53 2013
> --8<---------------cut here---------------end--------------->8---
>
> Since quartz() function creates a new window, adding it to
> inferior-S-language-start (even if it were easy!) is not really an
> option.
>
> However, since the command line R works just fine, I suspect that this
> is a bug in the way ESS invokes R.
> (inferior-R-args is "--no-save")
>
>
> Emacs  : GNU Emacs 24.3.1 (x86_64-apple-darwin, NS apple-appkit-1038.36)
>  of 2013-03-13 on bob.porkrind.org
> Package: ess-mode 13.09 [svn: 5778 (2013-09-27)]
>
> current state:
> ==============
> (setq
>  ess-language nil
>  ess-dialect nil
>  ess-ask-for-ess-directory nil
>  ess-ask-about-transfile nil
>  ess-directory nil
>  ess-keep-dump-files "always"
>  ess-source-directory "/var/folders/5k/3w_vc1qs6pv4k3wvnrwr_5100000gn/T/"
>  ess-use-ido t
>  ess-use-eldoc t
>  ess-use-tracebug t
>  ess-use-auto-complete t
>  ess-eval-visibly-p 'nowait
>  ess-can-eval-in-background nil
>  ess-local-process-name nil
>  )
> --
> Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.1265
> http://www.childpsy.net/ http://americancensorship.org
> http://iris.org.il http://truepeace.org http://think-israel.org
> A slave dreams not of Freedom, but of owning his own slaves.
>
> _______________________________________________
> ESS-bugs ESS-bugs@r-project.org
> https://stat.ethz.ch/mailman/listinfo/ess-bugs
>
> _______________________________________________
> ESS-core list: https://stat.ethz.ch/mailman/listinfo/ess-core
>
>

	[[alternative HTML version deleted]]

