[ESS] knitr

Yihui Xie xie at yihui.name
Wed Oct 3 15:08:01 CEST 2012


Oh, you are wright. Sorry about that..

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


On Wed, Oct 3, 2012 at 4:05 AM, Stephen Eglen <S.J.Eglen at damtp.cam.ac.uk> wrote:
>> There is 100% guarantee for *.Rnw documents; one thing I can think of
>> is to see if opts_chunk is used in the document, e.g.
>> opts_chunk$set(echo = TRUE). This is unique to knitr. Other minor
>> differences are like results='hide' (knitr) vs results=hide (Sweave).
>>
>> If a document uses \usepackage{Sweave}, it is more likely to be Sweave
>> because knitr does not need this. The other approach is to check if
>> (require('knitr')) in R before weaving the file.
>
> Thanks Yihui.  (Is the word "no" missing before the 100% in your first
> sentence?)
>
> Stephen
>



More information about the ESS-help mailing list