yihui / knitr

A general-purpose tool for dynamic report generation in R
https://yihui.org/knitr/
2.39k stars 878 forks source link

Recompiling text in latex without rerunning chuncks #1272

Closed courtiol closed 8 years ago

courtiol commented 8 years ago

Running R chunks maybe sometimes time consumming but recompiling often is usefull while editing the text outside chunks to see what the outcomes look like and to check that no TeX error have been introduced. Thus a feature that I (and many others) would really appreciate would be that knitr offers the possibility to recompile only the text part outside chunk and recycle the chunk outputs from previous compilations. I undertand that this would be a bit tricky because the LaTeX output of chunks would have to be stored in independent LaTeX files and then the new LaTeX of the text would have to includes those previous chunks before the LateX is rendered.

yihui commented 8 years ago

Do you know that you can cache code chunks using the chunk option cache = TRUE?

courtiol commented 8 years ago

I guess not, sorry, you can close the issue. Best, Alex

On 19 August 2016 at 20:55, Yihui Xie notifications@github.com wrote:

Do you know that you can cache code chunks using the chunk option cache = TRUE?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/yihui/knitr/issues/1272#issuecomment-241104747, or mute the thread https://github.com/notifications/unsubscribe-auth/AHJvkltAgwhPlcTqBl2wvdbL6QdpUJIkks5qhfw0gaJpZM4JofBI .

Alexandre Courtiol

http://sites.google.com/site/alexandrecourtiol/home

"Science is the belief in the ignorance of experts", R. Feynman

github-actions[bot] commented 3 years ago

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.