[R] enscript states file for R scripts?

Peter Dalgaard p.dalgaard at biostat.ku.dk
Thu Jul 17 17:27:09 CEST 2008


Dirk Eddelbuettel wrote:
> 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
>   
Unfortunately, a2ps doesn't support Unicode (and afaics u2ps does not do 
indentation...). 

-- 
   O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark      Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)              FAX: (+45) 35327907



More information about the R-help mailing list