Hofert Jan Marius | 1 Oct 11:10 2011
Picon

Re: r-autoyas not working: "Namespace: `nil'"

> In a R process, could you type "pnorm"  When I do this, I get
>  
> > pnorm
> function (q, mean = 0, sd = 1, lower.tail = TRUE, log.p = FALSE) 
> .Internal(pnorm(q, mean, sd, lower.tail, log.p))
> <environment: namespace:stats>
>  
> Which allows R-autoyas to guess this function is in a prebuilt package.
>  
> Could you tell me what you get?

Dear Matt,

thanks for your help and sorry for the very late response.

I get the same output as you:
function (q, mean = 0, sd = 1, lower.tail = TRUE, log.p = FALSE) 
.Internal(pnorm(q, mean, sd, lower.tail, log.p))
<environment: namespace:stats>

>  
> In the interim, you could customize `r-autoyas-expand-package-functions-only' to nil.

I tried this and started Aquamacs again (C-h v r-autoyas-expand-package-functions-only now shows nil),
but it did not change the behavior when I type in "pnorm" and press TAB. 

Do you have any ideas what is going wrong?

If I type in "pnorm(" and hit TAB, I get the following in a split buffer:

(Continue reading)

Rainer M Krug | 5 Oct 11:41 2011
Picon

[BUG]: unexpected error when evaluating commented code

Hi

I have the attached file. If I open it, select the complete code and
evaluate it, I get an error:

> > > > > > > > > > > Error: unexpected ')' in ")"

But If I source the file, it works. If I add an additional line at the end
(e.g. cat()), the code evaluates fine.

some info:

Emacs  : GNU Emacs 23.2.1 (i686-pc-linux-gnu, GTK+ Version 2.24.4)
 of 2011-04-04 on rothera, modified by Debian
Package: ess-mode 5.14

current state:
==============
(setq
 ess-language "S"
 ess-dialect "R"
 ess-ask-for-ess-directory "TRUE"
 ess-ask-about-transfile nil
 ess-directory nil
 ess-keep-dump-files "always"
 ess-source-directory "/tmp/"
 )

Cheers,

(Continue reading)

Rainer M Krug | 5 Oct 11:36 2011
Picon

[BUG]: unexpected error when evaluating commented code

Hi

I have the attached file. If I open it, select the complete code and
evaluate it, I get an error:

> > > > > > > > > > > Error: unexpected ')' in ")"

But If I source the file, it works. If I add an additional line at the end
(e.g. cat()), the code evaluates fine.

Below please find the bug-report output from ess.

Cheers,

Rainer

[ess-site.el]: ess-customize-alist=nil
[ess-site.el _2_]: ess-customize-alist=nil
(S): ess-s-versions-create making M-x defuns for

(R): ess-r-versions-create making M-x defuns for
 R-2.8.1
(ess-setq-vars-LOCAL): language=S, dialect=R, buf=nil, comint..echoes=nil,
comint..sender=comint-simple-send
(ess-mode-1): ess-language=S, ess-dialect=R buf=
org-src-fontification:R-mode
(ess-mode-1.5): alist=((ess-local-customize-alist quote R-customize-alist)
(ess-dialect . R) (ess-suffix . R) (ess-dump-filename-template
ess-replace-regexp-in-string S$ ess-suffix ess-dump-filename-template-proto)
(ess-mode-syntax-table . R-syntax-table) (ess-mode-editing-alist .
(Continue reading)

Vitalie Spinu | 5 Oct 12:19 2011
Picon

Re: [BUG]: unexpected error when evaluating commented code

Hi Rainer,

This issue was reported for ess-tracebug here
http://code.google.com/p/ess-tracebug/issues/detail?id=8&can=1
It's solved now.

If you are using ess-tracebug (http://code.google.com/p/ess-tracebug/)
you should upgrade. If not, then I am clueless of what is going on
there.

HTH,
Vitalie.

On Wed, Oct 5, 2011 at 11:41 AM, Rainer M Krug <r.m.krug <at> gmail.com> wrote:
> Hi
>
> I have the attached file. If I open it, select the complete code and
> evaluate it, I get an error:
>
>> > > > > > > > > > > Error: unexpected ')' in ")"
>
> But If I source the file, it works. If I add an additional line at the end
> (e.g. cat()), the code evaluates fine.
>
> some info:
>
> Emacs  : GNU Emacs 23.2.1 (i686-pc-linux-gnu, GTK+ Version 2.24.4)
>  of 2011-04-04 on rothera, modified by Debian
> Package: ess-mode 5.14
>
(Continue reading)

Rainer M Krug | 5 Oct 12:29 2011
Picon

Re: [BUG]: unexpected error when evaluating commented code

On Wed, Oct 5, 2011 at 12:19 PM, Vitalie Spinu <spinuvit.list <at> gmail.com>wrote:

> Hi Rainer,
>
> This issue was reported for ess-tracebug here
> http://code.google.com/p/ess-tracebug/issues/detail?id=8&can=1
> It's solved now.
>
> If you are using ess-tracebug (http://code.google.com/p/ess-tracebug/)
> you should upgrade. If not, then I am clueless of what is going on
> there.
>
>
I am using ess-tracebug, and the problem is solved with the update.

Thanks,

Rainer

> HTH,
> Vitalie.
>
> On Wed, Oct 5, 2011 at 11:41 AM, Rainer M Krug <r.m.krug <at> gmail.com> wrote:
> > Hi
> >
> > I have the attached file. If I open it, select the complete code and
> > evaluate it, I get an error:
> >
> >> > > > > > > > > > > Error: unexpected ')' in ")"
> >
(Continue reading)

Polaf | 5 Oct 17:01 2011
Picon

Change C-x h to C-a

Hello, 

 I am trying to change C-x h to C-a .

 With (global-set-key [(control a)] 'mark-whole-buffer) I was patly succesfull. 

 In fact the shortcut does not work in ESS R buffer.

 I tryed also:

 ;Binding in R console
 (add-hook 'comint-mode-hook
 (lambda ()
 (define-key comint-mode-map [(control a)] 'mark-whole-buffer)
 ))

 (add-hook 'inferior-ess-mode-hook
 '(lambda nil
 (define-key inferior-ess-mode-map [(control a)] 'mark-whole-buffer)
 ))

 Without success. 

 Thanks for help 

 Antonio

	[[alternative HTML version deleted]]

______________________________________________
(Continue reading)

Vitalie Spinu | 6 Oct 13:20 2011
Picon

Re: Change C-x h to C-a

Hi Antonio,

Personally I believe it's not a very good idea to remap this action.
It's better to keep the basic navigation shortcuts handy, as they are
by default (unless you have 10cm pinkie to stretch to Home key). With
emacs \C-a is one of the most often used actions, in contrast to \C-x
h which is of occasional use only.

I tried your shortcuts, they both work. And you don't need to put them
in the hook. Just place

(define-key comint-mode-map [(control ?a)] 'mark-whole-buffer)

after ess initialization part.

Cheers,
Vitalie.

On Wed, Oct 5, 2011 at 5:01 PM, Polaf <polaf <at> gmx.com> wrote:
> Hello,
>
>  I am trying to change C-x h to C-a .
>
>  With (global-set-key [(control a)] 'mark-whole-buffer) I was patly succesfull.
>
>  In fact the shortcut does not work in ESS R buffer.
>
>  I tryed also:
>
>  ;Binding in R console
(Continue reading)

Reinhard Schiemann | 7 Oct 20:15 2011
Picon
Picon

error Lisp nesting exceeds `max-lisp-eval-depth'

Dear ESS-helper,

I have happily used ESS in different environments; but just now I have run into trouble for the first time:

I am at point 6 of the GNU Emacs simple installation instructions (section 2.1, where I am told to send this email).

When I open some R code everything looks normal ('ESS' menu etc.). But when I actually want to start the R
buffer (M-x R) I am asked repeatedly for the startup directory, and insisting hitting RET finally leads to
the "Lisp nesting exceeds `max-lisp-eval-depth'" error. The R-buffer does not open.

Below some version info and the Emacs Messages window.

Kind regards,

Reinhard Schiemann

#### uname -a
Linux chestnut 2.6.27.56-0.1-default #1 SMP 2010-12-01 16:57:58 +0100 x86_64 x86_64 x86_64 GNU/Linux

#### Emacs version
This is GNU Emacs 22.3.1 (x86_64-suse-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2008-12-03 on build23

#### Emacs *Messages* Buffer:
Mark set
("emacs-x11" "put.var.umdaily.R")
Loading paren...done
Loading /home/reinhard/local/ess-5.14/lisp/ess-site.el (source)...
Loading regexp-opt...done
Loading edmacro...done
(Continue reading)

Rodney Sparapani | 7 Oct 22:22 2011
Picon

Re: error Lisp nesting exceeds `max-lisp-eval-depth'

Reinhard Schiemann wrote:
> Dear ESS-helper,
> 
> I have happily used ESS in different environments; but just now I have run into trouble for the first time:
> 
> I am at point 6 of the GNU Emacs simple installation instructions (section 2.1, where I am told to send this email).
> 
> When I open some R code everything looks normal ('ESS' menu etc.). But when I actually want to start the R
buffer (M-x R) I am asked repeatedly for the startup directory, and insisting hitting RET finally leads to
the "Lisp nesting exceeds `max-lisp-eval-depth'" error. The R-buffer does not open.
> 
> Below some version info and the Emacs Messages window.
> 
> Kind regards,
> 
> Reinhard Schiemann
> 
> #### uname -a
> Linux chestnut 2.6.27.56-0.1-default #1 SMP 2010-12-01 16:57:58 +0100 x86_64 x86_64 x86_64 GNU/Linux
> 
> #### Emacs version
> This is GNU Emacs 22.3.1 (x86_64-suse-linux-gnu, X toolkit, Xaw3d scroll bars)
>  of 2008-12-03 on build23
> 
> #### Emacs *Messages* Buffer:
> Mark set
> ("emacs-x11" "put.var.umdaily.R")
> Loading paren...done
> Loading /home/reinhard/local/ess-5.14/lisp/ess-site.el (source)...
> Loading regexp-opt...done
(Continue reading)

Aloke Phatak | 14 Oct 10:05 2011
Picon
Picon

Automatically pasting R output into script buffer?

I use ESS/R in two-buffer mode - a script buffer where I'm working on an 
R script, and the other, an R process buffer. I'd like to be able to 
execute a command from the script buffer (using C-c C-j, for example) 
and have its output pasted into my script directly below the command 
I've just executed.

Is that possible?

Right now, I have to switch to the R process buffer, copy the output, 
and then paste it back into my script buffer.

Yes, I know about ESS transcript mode, but I prefer to work this way.

Thanks,

Aloke
--

-- 
......................................................
. Aloke Phatak                                       .
. CSIRO Mathematics, Informatics and Statistics      .
.                                                    .
.  Private Bag No. 5, Wembley, WA 6913 Australia     .
.  Leeuwin Centre, 65 Brockway Rd, Floreat, WA 6014  .
.  Ph: +61 8 9333 6184  Fax: +61 8 9333 6121         .
.  E-mail: Aloke.Phatak <at> csiro.au                     .
......................................................

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


Gmane