cameronbracken / pgfSweave

Quality graphics and speedy compilation with Sweave
http://r-forge.r-project.org/projects/pgfsweave/
29 stars 6 forks source link

parse.tidy and deparse.tidy are done in formatR #12

Closed yihui closed 13 years ago

yihui commented 13 years ago

BTW, I did not touch unmask.source, instead I asked deparse.tidy to paste the characters together with \n first, then unmask.source can deal with this string correctly, even when inline comments were pushed to the next line. Thus I also modified the width to 0.75*getOption('width') since we do not need to leave that wide space for the code. I tested with a few cases, and it seems to work well.

formatR 0.1-8: https://github.com/downloads/yihui/formatR/formatR_0.1-8.tar.gz