Ali Tofigh | 4 May 2012 00:30
Picon

C-c C-c (comint-interrupt-subjob) with tramp crashes R

When running remote R sessions using tramp, i'm unable to interrupt R
using C-c C-c (or comint-interrupt-subjob). Using C-c C-c results in R
crashing with the message "Process R exited abnormally with code 255".
Does anyone else have this problem? I can't figure out what is going
on as I can't see anything related to this in the message logs.

/ali

______________________________________________
ESS-help <at> r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help

Munawar Cheema | 4 May 2012 12:18

Problem getting help window to appear within Emacs

I am struggling to figure out why I can't get my help window in an emacs
frame/window.  I have used earlier versions of ESS and R without any
trouble but just came back after a hiatus and embarrassingly can't
figure out this seemingly trivial problem.

I first start emacs -Q
then Eval: (require 'ess-site)
M-x R
After this I then enter a command such as ?ls or help(ls) will pop up a
window in the Window Manager and not in emacs.  How can I get the window
to appear in emacs instead?  I have tried searching for an answer
without luck so I am asking the list.

Thanks in advance
Munawar Cheema

Version Information
OS: Windows 7 64-bit with  Cygwin
ESS 12.04 and R 2.14.2
GNU Emacs 23.4.1 (i386-mingw-nt6.1.7601)
 of 2012-02-04 on MARVIN

______________________________________________
ESS-help <at> r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help

Ali Tofigh | 4 May 2012 16:50
Picon

Re: Problem getting help window to appear within Emacs

have you tried setting the variable ess-help-own-frame to nil?

/ali

On Fri, May 4, 2012 at 6:18 AM, Munawar Cheema <mcheema <at> btinternet.com> wrote:
> I am struggling to figure out why I can't get my help window in an emacs
> frame/window.  I have used earlier versions of ESS and R without any
> trouble but just came back after a hiatus and embarrassingly can't
> figure out this seemingly trivial problem.
>
> I first start emacs -Q
> then Eval: (require 'ess-site)
> M-x R
> After this I then enter a command such as ?ls or help(ls) will pop up a
> window in the Window Manager and not in emacs.  How can I get the window
> to appear in emacs instead?  I have tried searching for an answer
> without luck so I am asking the list.
>
> Thanks in advance
> Munawar Cheema
>
> Version Information
> OS: Windows 7 64-bit with  Cygwin
> ESS 12.04 and R 2.14.2
> GNU Emacs 23.4.1 (i386-mingw-nt6.1.7601)
>  of 2012-02-04 on MARVIN
>
> ______________________________________________
> ESS-help <at> r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
(Continue reading)

Brendan Halpin | 4 May 2012 17:15
Picon
Favicon

Problems after Debian update

I've just done an apt-get update on Debian unstable, and ESS is acting
strange.

When I try to run Stata, it asks for the starting directory, then hangs
with this message:

Type C-h m for help on ESS version YY.MM

C-g and I can switch to the Stata buffer. There, things work well except
I can't recall commands with C-up-arrow, getting instead:

ess-error: Beggining of input not found

ess-version gives this: 

ess-version : YY.MM YY-MM-rNNNN

This is on emacs-snapshot but a quick test suggests it also holds for
emacs23.

I suspect something has screwed up in the installation. 

Brendan
--

-- 
Brendan Halpin,   Department of Sociology,   University of Limerick,   Ireland
Tel: w +353-61-213147  f +353-61-202569  h +353-61-338562;  Room F1-009 x 3147
mailto:brendan.halpin <at> ul.ie    ULSociology on Facebook: http://on.fb.me/fjIK9t
http://teaching.sociology.ul.ie/bhalpin/wordpress         twitter: <at> ULSociology

______________________________________________
(Continue reading)

Vitalie Spinu | 4 May 2012 17:38
Picon
Gravatar

Re: Problems after Debian update

>>>> Brendan Halpin <brendan.halpin <at> ul.ie>
>>>> on Fri, 4 May 2012 16:15:46 +0100 wrote:

  > I've just done an apt-get update on Debian unstable, and ESS is acting
  > strange.

  > When I try to run Stata, it asks for the starting directory, then hangs
  > with this message:
  > Type C-h m for help on ESS version YY.MM

It looks like ESS waiting for STATA prompt. There have been some changes
in this mechanism several months ago, but I don't think anyone looked
into adjusting STATA. Where can I grab trial stata for linux so I can
figure it out?

  > C-g and I can switch to the Stata buffer. There, things work well except
  > I can't recall commands with C-up-arrow, getting instead:

  > ess-error: Beggining of input not found

It also has to do with the prompt. One thing you can try is to set
comint-use-prompt-regexp to nil:

(add-hook 'ess-post-run-hook
	  (lambda () (when (equal ess-language "STA")
		       (setq comint-use-prompt-regexp nil))))

But I really need stata to solve that for sure.

  > ess-version gives this: 
(Continue reading)

Vitalie Spinu | 4 May 2012 17:40
Picon
Gravatar

Re: Problem getting help window to appear within Emacs

>>>> Munawar Cheema <mcheema <at> btinternet.com>
>>>> on Fri, 4 May 2012 11:18:07 +0100 wrote:

  > I am struggling to figure out why I can't get my help window in an emacs
  > frame/window.  I have used earlier versions of ESS and R without any
  > trouble but just came back after a hiatus and embarrassingly can't
  > figure out this seemingly trivial problem.

  > I first start emacs -Q
  > then Eval: (require 'ess-site)
  > M-x R
  > After this I then enter a command such as ?ls or help(ls) will pop up a
  > window in the Window Manager and not in emacs.  How can I get the window
  > to appear in emacs instead?  

Is it an emacs window (i.e. frame), or what window is that?  C-c C-v
also gives the same result, right?

  > I have tried searching for an answer without luck so I am asking the
  > list.
  > Thanks in advance
  > Munawar Cheema

  > Version Information
  > OS: Windows 7 64-bit with  Cygwin
  > ESS 12.04 and R 2.14.2
  > GNU Emacs 23.4.1 (i386-mingw-nt6.1.7601)
  >  of 2012-02-04 on MARVIN

  > ______________________________________________
(Continue reading)

Vitalie Spinu | 4 May 2012 17:45
Picon
Gravatar

Re: C-c C-c (comint-interrupt-subjob) with tramp crashes R


It might not be ESS but emacs+comint thing. Is there a way to run with
tramp some other comint based inferior like *shell* ?

>>>> Ali Tofigh <alix.tofigh <at> gmail.com>
>>>> on Thu, 3 May 2012 18:30:55 -0400 wrote:

  > When running remote R sessions using tramp, i'm unable to interrupt R
  > using C-c C-c (or comint-interrupt-subjob). Using C-c C-c results in R
  > crashing with the message "Process R exited abnormally with code 255".
  > Does anyone else have this problem? I can't figure out what is going
  > on as I can't see anything related to this in the message logs.

  > /ali

  > ______________________________________________
  > ESS-help <at> r-project.org mailing list
  > https://stat.ethz.ch/mailman/listinfo/ess-help

______________________________________________
ESS-help <at> r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help

Munawar Cheema | 4 May 2012 17:46

Re: Problem getting help window to appear within Emacs

Ali, It is already set to nil.
I didn't mention the first time I type ?ls I get a beep and only on the
second and subsequent attempts do I get a pop up GUI window.

Here is some gobbledegook I get out in the *ESS* buffer if it helps.

Making Process...Buf *R*, Proc R, Prog C:/Program
Files/R/R-2.14.2/bin/i386/Rterm.exe
 Start File=nil, Args= --ess  .
(ess-multi 2): waiting for process to start (before hook)*ddeclient-p:
ess-loc-proc-name is 'R'(ess-multi 2): waiting for process after
hook(R): inferior-ess-language-start=options(STERM='iESS',
str.dendrogram.last ="'", editor='gnuclient.exe')
*ddeclient-p: ess-loc-proc-name is 'R'(R): version (2.14.2)
*ddeclient-p: ess-loc-proc-name is 'R'resetting completion to
'ess-R-complete-object-name*ddeclient-p: ess-loc-proc-name is
'R'*ddeclient-p: ess-loc-proc-name is 'R'*ddeclient-p: ess-loc-proc-name
is 'R'*ddeclient-p: ess-loc-proc-name is 'R'(ess-setq-vars-LOCAL):
language=S, dialect=R, buf=nil, comint..echoes=nil,
comint..sender=comint-simple-send
*ddeclient-p: ess-loc-proc-name is 'R'(ess-help: error-buffer
'*help[R](ls)*' nodocs (1 1)
*ddeclient-p: ess-loc-proc-name is 'R'

Best Regards
Munawar Cheema

On 04/05/2012 15:50, Ali Tofigh wrote:
> have you tried setting the variable ess-help-own-frame to nil?
>
(Continue reading)

Munawar Cheema | 4 May 2012 17:52

Re: Problem getting help window to appear within Emacs

Vitalie,
C-c C-v gives me the same result.  It is definitely not an emacs frame
and looks a lot like a window you would get from the default RGUI.

Regards
Munawar

On 04/05/2012 16:40, Vitalie Spinu wrote:
>>>>> Munawar Cheema <mcheema <at> btinternet.com>
>>>>> on Fri, 4 May 2012 11:18:07 +0100 wrote:
>   > I am struggling to figure out why I can't get my help window in an emacs
>   > frame/window.  I have used earlier versions of ESS and R without any
>   > trouble but just came back after a hiatus and embarrassingly can't
>   > figure out this seemingly trivial problem.
>
>   > I first start emacs -Q
>   > then Eval: (require 'ess-site)
>   > M-x R
>   > After this I then enter a command such as ?ls or help(ls) will pop up a
>   > window in the Window Manager and not in emacs.  How can I get the window
>   > to appear in emacs instead?  
>
> Is it an emacs window (i.e. frame), or what window is that?  C-c C-v
> also gives the same result, right?
>
>   > I have tried searching for an answer without luck so I am asking the
>   > list.
>   > Thanks in advance
>   > Munawar Cheema
>
(Continue reading)

Vitalie Spinu | 4 May 2012 18:05
Picon
Gravatar

Re: Problem getting help window to appear within Emacs


What does getOption("help_type") in R says? Set it to "text": 
options(help_type = "text")

It looks like you are running ddeclent (is this how it should be on
cygwin?). I hope Rich can help you better here.

>>>> Munawar Cheema <mcheema <at> btinternet.com>
>>>> on Fri, 4 May 2012 16:46:14 +0100 wrote:

  > Ali, It is already set to nil.
  > I didn't mention the first time I type ?ls I get a beep and only on the
  > second and subsequent attempts do I get a pop up GUI window.

  > Here is some gobbledegook I get out in the *ESS* buffer if it helps.

  > Making Process...Buf *R*, Proc R, Prog C:/Program
  > Files/R/R-2.14.2/bin/i386/Rterm.exe
  >  Start File=nil, Args= --ess  .
  > (ess-multi 2): waiting for process to start (before hook)*ddeclient-p:
  > ess-loc-proc-name is 'R'(ess-multi 2): waiting for process after
  > hook(R): inferior-ess-language-start=options(STERM='iESS',
  > str.dendrogram.last ="'", editor='gnuclient.exe')
  > *ddeclient-p: ess-loc-proc-name is 'R'(R): version (2.14.2)
  > *ddeclient-p: ess-loc-proc-name is 'R'resetting completion to
  > 'ess-R-complete-object-name*ddeclient-p: ess-loc-proc-name is
  > 'R'*ddeclient-p: ess-loc-proc-name is 'R'*ddeclient-p: ess-loc-proc-name
  > is 'R'*ddeclient-p: ess-loc-proc-name is 'R'(ess-setq-vars-LOCAL):
  > language=S, dialect=R, buf=nil, comint..echoes=nil,
  > comint..sender=comint-simple-send
(Continue reading)


Gmane