Dear all, Is there any such package? I am thinking of something equivalent to Perl::Tidy. For example with VI editor one can visual highlight a portion of Perlcode and then issue the command: !perltidy then the code will be automatically arranged. - Gundala Viswanath Jakarta - Indonesia
check Section 3.1 of the `Writing R Extensions' manual. I hope it helps. Best, Dimitris Gundala Viswanath wrote:> Dear all, > > Is there any such package? > > I am thinking of something equivalent to Perl::Tidy. > For example with VI editor one can visual highlight a portion > of Perlcode and then issue the command: > > !perltidy > > then the code will be automatically arranged. > > - Gundala Viswanath > Jakarta - Indonesia > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >-- Dimitris Rizopoulos Assistant Professor Department of Biostatistics Erasmus University Medical Center Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands Tel: +31/(0)10/7043399 Fax: +31/(0)10/7044657
I don't know what kind of tidying you want, but ESS within emacs is a possibility. -Don At 6:32 PM +0900 9/5/08, Gundala Viswanath wrote:>Dear all, > >Is there any such package? > >I am thinking of something equivalent to Perl::Tidy. >For example with VI editor one can visual highlight a portion >of Perlcode and then issue the command: > >!perltidy > >then the code will be automatically arranged. > >- Gundala Viswanath >Jakarta - Indonesia > >______________________________________________ >R-help at r-project.org mailing list >https:// stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide http:// www. R-project.org/posting-guide.html >and provide commented, minimal, self-contained, reproducible code.-- -------------------------------------- Don MacQueen Environmental Protection Department Lawrence Livermore National Laboratory Livermore, CA, USA 925-423-1062