The time-out restriction is from LyX, so Sweave/knitr cannot do
anything about it.

My current workaround is to export Rnw from LyX, run knitr on it with
cache turned on, and run LyX again since the time-consuming chunks
have been calculated and cached.

Regards,
Yihui
--
Yihui Xie <xieyi...@gmail.com>
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA



On Thu, Feb 2, 2012 at 3:16 PM, Jack Tanner <i...@hotmail.com> wrote:
> Liviu Andronic <landronimirc <at> gmail.com> writes:
>
>>
>> Can the 'timeout' be configured? Or is it possible to treat
>> Sweave/knitr documents differently? Regards
>
> One Sweave/knitr computation is different from another. I'd expect 1+1 to be
> computed quickly, but I also have some simulations that take hours, and I'd 
> love
> to use knitr to include those results in a LyX document. I'd vote for a global
> LyX setting that Sweave/knitr has a longer time-out by default, and a knitr
> option that allows different time-outs per chunk.
>

Reply via email to