Re: [R] enscript states file for R scripts?

From: Dirk Eddelbuettel <edd_at_debian.org>
Date: Tue, 15 Jul 2008 08:37:04 -0500

On 15 July 2008 at 17:23, hadley wickham wrote:
| An alternative to enscript is highlight,
| http://www.andre-simon.de/doku/highlight/en/highlight.html, which does
| come with R highlighting built in.

Another alternative is GNU a2ps which has definitions for R source, documentation and transcripts. As it says the bottom of the page at http://cran.r-project.org/other-software.html (with links)

       GNU a2ps is a fairly versatile text-to-anything processor, useful for
       typsetting source code from a wide variety of programming
       languages. s.ssh, rd.ssh and st.ssh are a2ps style sheets for S code,
       Rd documentation format, and S transscripts, respectively. (These will
       be included in the next a2ps release.)

and indeed, these files have been part of a2ps' upstream releases for a long time.

Dirk

| Hadley
|
| On Tue, Jul 15, 2008 at 2:57 PM, cmr.Pent_at_gmail.com <cmr.Pent_at_gmail.com> wrote:
| > Hi group!
| >
| > GNU enscript is a free (as in freedom) text file decorator, which
| > among other features can highlight source code files. The language
| > syntax descriptions are provided via special "states" files. The
| > standard distribution contains states files for the most popular
| > languages (C, C++, Pascal, LaTeX, etc), but sadly there is no states
| > file for R.
| >
| > Does anyone know if there is a place where I can obtain enscript
| > states file for decorating R scripts? Many thanks!
| >
| > Andrey Paramonov
| >
| > ______________________________________________
| > 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.
| >
|
|
|
| --
| http://had.co.nz/
|
| ______________________________________________
| 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.

-- 
Three out of two people have difficulties with fractions.

______________________________________________
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.
Received on Tue 15 Jul 2008 - 13:39:31 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 17 Jul 2008 - 16:32:01 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive