I agree. The compile PDF button is a good design. It would be nice if
they have another button for knit('***.Rnw') operation. This is useful
even there is the Ctrl+Alt+R shortcut that run all chunks. The reason
is that Ctrl+Alt+R would also re-evaluate the cached chunk which take
a long time sometimes. Instead, adding the knit button (i.e. in the
console window) wouldn't.
A simplified version is updated through:
https://github.com/nickytong/large-dataset-without-caching
Please forgive me as a knitr newbie. I didn't know the Rnw file can be
so concise!
The "largeDataNoCaching_byClickingCompilePDF.pdf" file is generated by
clicking compile PDF button and cannot avoid data reloading.
The "largeDataNoCaching_by_knit().pdf" file is generated by knit() and
gives what I need.
On May 28, 10:19 pm, Yihui Xie <
xieyi...@gmail.com> wrote:
> In terms of the RStudio problem, I guess you do not need to report it,
> since it is by design. It starts a new R session each time to make
> sure your document is reproducible (objects not polluted by the global
> environment), which is good.
>
> I do not quite understand your question here. It seems that you want
> to avoid evaluating a chunk but do not want to save the huge object to
> the cache database. That is impossible. If you want to use cache, you
> have to write the objects to cache files; otherwise you should not use
> cache.
>
> Can you simplify your example a little bit? I'm lost in LaTeX. At
> least the first 60 lines are not helpful. Start making an example with
> three lines:
>
> \documentclass{article}
> \begin{document}
> \end{document}
>
> Regards,
> Yihui
> --
> Yihui Xie <
xieyi...@gmail.com>