[R] R commandline editor question

2005-05-27 Thread Ajay Narottam Shah
I am using R 2.1 on Apple OS X.

When I get the  prompt, I find it works well with emacs commandline
editing. Keys like M-f C-k etc. work fine.

The one thing that I really yearn for, which is missing, is bracket
matching When I am doing something which ends in  it is really
useful to have emacs or vi-style bracket matching, so as to be able
to visually keep track of whether I have the correct matching
brackets, whether ( or { or [.

I'm sure this is possible. I will be most grateful if someone will
show the way :-) Thanks,

-- 
Ajay Shah   Consultant
[EMAIL PROTECTED]  Department of Economic Affairs
http://www.mayin.org/ajayshah   Ministry of Finance, New Delhi

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] R commandline editor question

2005-05-27 Thread Robin Hankin

Hi  Ajay

well ESS has such a facility.

However, I think Mathematica has a super scheme: unbalanced brackets 
show up

in red, making them obvious.

This is particularly good for spotting wrongly interleaved brackets, as 
in


([  blah di blah  )]

note bracket closure is out of order

in which case both opening braces are highlighted in red: and the 
system won't

accept a newline until the closures are all correctly matched.

Would anyone else find such a thing useful?

Could the ESS team make something like this happen?





On May 27, 2005, at 12:11 pm, Ajay Narottam Shah wrote:


I am using R 2.1 on Apple OS X.

When I get the  prompt, I find it works well with emacs commandline
editing. Keys like M-f C-k etc. work fine.

The one thing that I really yearn for, which is missing, is bracket
matching When I am doing something which ends in  it is really
useful to have emacs or vi-style bracket matching, so as to be able
to visually keep track of whether I have the correct matching
brackets, whether ( or { or [.

I'm sure this is possible. I will be most grateful if someone will
show the way :-) Thanks,

--
Ajay Shah   Consultant
[EMAIL PROTECTED]  Department of Economic Affairs
http://www.mayin.org/ajayshah   Ministry of Finance, New Delhi

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! 
http://www.R-project.org/posting-guide.html




--
Robin Hankin
Uncertainty Analyst
National Oceanography Centre, Southampton
European Way, Southampton SO14 3ZH, UK
 tel  023-8059-7743

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] R commandline editor question

2005-05-27 Thread Ajay Narottam Shah
 well ESS has such a facility.
 
 However, I think Mathematica has a super scheme: unbalanced brackets 
 show up
 in red, making them obvious.
 
 This is particularly good for spotting wrongly interleaved brackets, as 
 in
 
 ([  blah di blah  )]
 
 note bracket closure is out of order
 
 in which case both opening braces are highlighted in red: and the 
 system won't
 accept a newline until the closures are all correctly matched.
 
 Would anyone else find such a thing useful?
 
 Could the ESS team make something like this happen?

ess is great, but I was asking about the R commandline. I tend to
write a lot of stuff on the fly at the R commandline.

Yes, colours are a great way to deal with this, and this feature
should ideally be in ESS.

-- 
Ajay Shah   Consultant
[EMAIL PROTECTED]  Department of Economic Affairs
http://www.mayin.org/ajayshah   Ministry of Finance, New Delhi

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] R commandline editor question

2005-05-27 Thread A.J. Rossini
Of course it should be in ESS.  In fact, it is for me, anyway
(different colors depending on whether they match or not).

Check out the paren-hilit or paren-match (or something like that)
customize options.

I.e. 

M-x customize-groups ret paren spc

(which ought to complete on names of groups/options starting with
paren)  or blink-paren.

(I'm not on an Emacs-enabled computer right now).

On 5/27/05, Robin Hankin [EMAIL PROTECTED] wrote:
 Hi  Ajay
 
 well ESS has such a facility.
 
 However, I think Mathematica has a super scheme: unbalanced brackets
 show up
 in red, making them obvious.
 
 This is particularly good for spotting wrongly interleaved brackets, as
 in
 
 ([  blah di blah  )]
 
 note bracket closure is out of order
 
 in which case both opening braces are highlighted in red: and the
 system won't
 accept a newline until the closures are all correctly matched.
 
 Would anyone else find such a thing useful?
 
 Could the ESS team make something like this happen?
 
 
 
 
 
 On May 27, 2005, at 12:11 pm, Ajay Narottam Shah wrote:
 
  I am using R 2.1 on Apple OS X.
 
  When I get the  prompt, I find it works well with emacs commandline
  editing. Keys like M-f C-k etc. work fine.
 
  The one thing that I really yearn for, which is missing, is bracket
  matching When I am doing something which ends in  it is really
  useful to have emacs or vi-style bracket matching, so as to be able
  to visually keep track of whether I have the correct matching
  brackets, whether ( or { or [.
 
  I'm sure this is possible. I will be most grateful if someone will
  show the way :-) Thanks,
 
  --
  Ajay Shah   Consultant
  [EMAIL PROTECTED]  Department of Economic Affairs
  http://www.mayin.org/ajayshah   Ministry of Finance, New Delhi
 
  __
  R-help@stat.math.ethz.ch mailing list
  https://stat.ethz.ch/mailman/listinfo/r-help
  PLEASE do read the posting guide!
  http://www.R-project.org/posting-guide.html
 
 
 --
 Robin Hankin
 Uncertainty Analyst
 National Oceanography Centre, Southampton
 European Way, Southampton SO14 3ZH, UK
   tel  023-8059-7743
 
 __
 R-help@stat.math.ethz.ch mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
 


-- 
best,
-tony

Commit early,commit often, and commit in a repository from which we can easily
roll-back your mistakes (AJR, 4Jan05).

A.J. Rossini
[EMAIL PROTECTED]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html