See http://yihui.github.com/knitr/demo/lyx/

Since you are using Windows, it is recommended to use the first
approach (it is difficult and very time-consuming to compile LyX from
source under Windows, as the second approach requires). Basically you
rename lyxknitr.R to lyxsweave.R and put in under
c:/users/me/appdata/roaming/LyX20/scripts; then your Sweave module
will actually become a knitr module.

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 Wed, Jan 18, 2012 at 3:31 PM, Jack Tanner <i...@hotmail.com> wrote:
> Yihui Xie <xie <at> yihui.name> writes:
>
>>
>> The first version of knitr was just released to CRAN yesterday, so you
>> will need to wait for one or two days for the Windows build on CRAN,
>> and probably a few days for your local CRAN mirror to sync.
>
> I just knew that you were going to release knitr the moment I sent my 
> question.
> Thanks.
>
> It's already built for Windows on CRAN and installable via the main site (but
> not yet all the mirrors).
>
> I tried to test things. I installed lyxknitr.R and knitr.module into
> c:/users/me/appdata/roaming/LyX20/scripts and ./layouts, and reconfigured. But
> Knitr doesn't show up as a module under Documents -> Settings -> Modules.
> Reconfigure didn't even look under c:/users... , so maybe I need to tell it 
> to?
>

Reply via email to