[ESS] R-2.3.0 crash
Robin Hankin
r.hankin at noc.soton.ac.uk
Tue May 16 10:49:05 CEST 2006
Hi guys
with a fresh ESS session:
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
Natural language support but running in an English locale
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> if(!exists("baseenv", mode="function")) baseenv <- function() NULL
options(STERM='iESS', editor='emacsclient')
> > Sys.getenv("DISPLAY")
DISPLAY
""
> X11("octopus:0.0")
Error: Couldn't find per display information
Process R exited abnormally with code 1 at Tue May 16 09:48:27 2006
On 15 May 2006, at 16:11, David Reitter wrote:
> One crucial difference between running R from a shell within Emacs
> and from R started by ESS may be that the shell is a log-in shell ("/
> bin/bash -l"), which picks up environment variables set in
> ~/.bash_profile and friends, while a process started by Emacs (even
> in a comint buffer) only inherits Emacs' environment (which is the OS
> X environment, NOT bash_profile). (Disclaimer: in Aquamacs it is the
> same environment, but in vanilla Carbon Emacs, it's not.)
>
> Of course, R shouldn't crash if DISPLAY is empty or set to something
> inappropriate.
>
> Robin, maybe you could report the value of DISPLAY just after you've
> started R from within ESS, e.g. via
>
> Sys.getenv("DISPLAY")
>
> -- D
>
>
> --
> http://aquamacs.org -- Aquamacs: Emacs on Mac OS X
>
>
>
> On 15 May 2006, at 15:56, Stephen Eglen wrote:
>
>> thanks Robin. I'm forwarding this to the ESS-help list so that
>> others
>> can see the solution to using X11 under R 2.3.0 with ESS.
>>
>> Stephen
>>
>> Robin Hankin writes:
>>> Hi guys.
>>>
>>>
>>> problem was solved with
>>>
>>>
>>> Sys.putenv(DISPLAY=":0.0")
>>> X11()
>>>
>>>
>>> (posted on the R-SIG-Mac mailing list by Simon Urbanek and Matt
>>> Cohen).
>
> ______________________________________________
> ESS-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
--
Robin Hankin
Uncertainty Analyst
National Oceanography Centre, Southampton
European Way, Southampton SO14 3ZH, UK
tel 023-8059-7743
More information about the ESS-help
mailing list