cameronbracken / pgfSweave

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

adapt to changes in R 2.13.0/2.14.0 #25

Open yihui opened 13 years ago

yihui commented 13 years ago

I'm not sure the new features in R 2.13/14 are good or bad news, but I like most of them. They should have come long long ago! :) One thing I noticed is that "the code chunk will be evaluated only once", which is really what I have been longing for. I have not looked at the changes in the source code yet, so I don't know how hard it would be to make a corresponding change in pgfSweave.

http://stat.ethz.ch/R-manual/R-devel/doc/html/NEWS.html

BTW, the pgfSweave package might be officially supported by LyX as part of literate programming in the future. I'm working on it.

I'm also trying to make use of the parser package to enhance formatR, so hopefully no more tricks/rules are needed to identify the comments in the code chunks.

cameronbracken commented 13 years ago

I think I am up to date with 2.13, but the changes in 2.14 are really great! I dont foresee many problems, but I will start testing early to make sure things work out. If you run into any problems let me know (i know you have already for some things).

That is great news about LyX , and formatR both, let me now if I can do anything to help with these changes!

yihui commented 13 years ago

I have basically done with formatR. The restriction of 2 spaces + # has been removed.

The pgfSweave support in LyX 2.0 seems to be too late, because 2.0 is to be released soon, and I have not fully tested my code yet. Hopefully it will go to the next version of LyX.