[ESS] knitr

Pierre Kleiber pkleiber.hi at gmail.com
Tue Oct 2 22:38:45 CEST 2012


Being a long-time user of R and ESS but never having tried sweave or other 
literate programing systems, I would like to try knitr. I'm searching for a 
knitr tutorial that makes use of ESS rather than RStudio. Can anyone direct me 
to such a tutorial?

Many thanks, Pierre


Tengfei Yin offered the following remark on 10/02/12 09:59...
> Awesome, thanks a lot  for you guys' hard work!
>
> On Tue, Oct 2, 2012 at 2:50 PM, Yihui Xie<xie at yihui.name>  wrote:
>
>> Just tested with the SVN source and it works perfect. Thanks!
>>
>> 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 Tue, Oct 2, 2012 at 1:20 PM, Vitalie Spinu<spinuvit at gmail.com>  wrote:
>>>    >>  Yihui Xie<xie at yihui.name>
>>>    >>  on Sat, 2 Jun 2012 10:48:40 -0400 wrote:
>>>
>>>    >  I asked knitr users about the ESS support and here is one
>> contribution
>>>    >  from them: http://sjp.co.nz/posts/emacs-ess-knitr/ It seems to be in
>>>    >  rough edges, but should be a good proof of concept.
>>>
>>>    >  I will be glad if knitr is going to the official ESS. As Vitalie
>>>    >  mentioned, the noweb support can be backend independent, so that
>>>    >  users can define how to weave the Rnw file.
>>>
>>> I have just added knitr processor for Rnw files to the trunk. That is,
>>> there is a customizable ess-swv-processor variable, which, if set to
>>> 'knitr, makes "M-n s" to knit instead of Sweave, and "M-n T" to purl
>>> instead of Stangle.
>>>
>>> There are also specialized ess-swv-knit and ess-swv-purl bound to "M-n
>>> r" and "M-n u" exactly as in the above add-on by Simon Potter.
>>>
>>> Will be available in a patch release pretty soon.
>>>
>>>    >  Or you can take an even further step to support other file formats
>>>    >  like R HTML, R Markdown, R reStructuredText, ... (knitr supports all
>>>    >  of them) It will be cool to be able to knit() and preview an HTML
>> file
>>>    >  with ESS. From our experience, LaTeX really stopped many people from
>>>    >  playing with literate programming with R.
>>>
>>> This functionality is unfortunately delayed, but will be available in
>>> the next version of ESS.
>>>
>>>      Best,
>>>      Vitalie.
>>
>> ______________________________________________
>> ESS-help at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/ess-help
>>
>
>
>

-- 
---------------------------------------------------------------------
Pierre Kleiber, Ph.D                  Email: pierre.kleiber at noaa.gov
Pacific Island Fisheries Science Center        Tel. wk: 808 983-5399
NOAA Fisheries                                      hm: 808 737-7544
2570 Dole St., Honolulu, HI 96822-2396
---------------------------------------------------------------------
"♫ It's a long long way from Amphioxus, but we all come from there ♫"
                                        --- Philip H. Pope



More information about the ESS-help mailing list