On Mon, Oct 22, 2012 at 7:41 PM, Pavel Sanda <sa...@lyx.org> wrote:
> Scott Kostyshak wrote:
>> But if you want to confirm that there is a problem (that you can run
>> shell commands from within a knitr/Sweave chunk), then you need to
>> have R installed. Sweave comes with R and knitr can be installed with
>> a simple install.packages('knitr') within R. Let me know if you want
>> instructions on this.
>
> I mean if I'm average user who have installed lyx without any
> specific packages (or maybe R for completely different purposes)
> and someone send me specially crafted .lyx file with harmful code
> will it work out of the box when loading and typesetting or
> do I need to setup some specific stuff WRT knitr before?

knitr (and thus knitr through LyX) will not work out of the box with
R. The user would have to install the package.
I think that Sweave is a different story because it comes with R so I
think that the user would not have to do anything else in order to be
on the bad end of a harmful .lyx file.

Scott

Reply via email to