Sweave2knitr

Software Screenshot:
Sweave2knitr
Software Details:
Version: 0.1.4
Upload Date: 20 Feb 15
Developer: David Robinson
Distribution Type: Freeware
Downloads: 0

Rating: nan/5 (Total Votes: 0)

Sweave2knitr is a simple Python script that helps to convert Sweave LaTeX documents to be instead compatible with Yihui Xie's knitr package. It is based on and inspired by Jeromy Anglim's blog entry, "Converting Sweave LaTeX to knitr LaTeX: A case study."

Warning: This conversion is not an exact science. While this catches some of the most common issues faced when converting from Sweave to LaTeX, there are a virtually infinite number of special cases that will have to be handled. Furthermore, this is a very early version that has been tested on only a few documents. Try it on your own Sweave documents: contributions are strongly encouraged!

USAGE

If infile.Rnw is your Sweave LaTeX file, use

 Sweave2knitr infile.Rnw outfile.nw

You can then use

 Rscript -e "library(knitr); knit('outfile.nw', 'outfile.tex')" pdflatex outfile.tex

To create the .tex file and turn it into a PDF.

Requirements:

  • Python

Similar Software

mark3
mark3

11 May 15

JabRef
JabRef

3 Jun 15

Beautiful Soup
Beautiful Soup

14 Apr 15

xls2Mysql
xls2Mysql

3 Jun 15

Comments to Sweave2knitr

Comments not found
Add Comment
Turn on images!