And if you don't want to type spaces or indent manually when you write your code, you may also use the function 'tidy.source()' (in the package 'animation') to add spaces and indent automatically. For example: http://animation.yihui.name/animation:misc#tidy_up_r_source
Hope this will "beautify" your code more :) Yihui On Sun, Sep 14, 2008 at 1:30 AM, Daren Tan <[EMAIL PROTECTED]> wrote: > > I am generating a report containing several R scripts in the appendix. Is > there any way to "beautify" the R source codes in microsoft word, similar to > what we see in tinn-R ? > > Thanks -- Yihui Xie <[EMAIL PROTECTED]> Phone: +86-(0)10-82509086 Fax: +86-(0)10-82509086 Mobile: +86-15810805877 Homepage: http://www.yihui.name School of Statistics, Room 1037, Mingde Main Building, Renmin University of China, Beijing, 100872, China ______________________________________________ R-help@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.