An open API service indexing awesome lists of open source software.

https://github.com/richfitz/sowsear

Frictionless literate programming: generate knitr files from R scripts
https://github.com/richfitz/sowsear

Last synced: 5 months ago
JSON representation

Frictionless literate programming: generate knitr files from R scripts

Awesome Lists containing this project

README

          

# sowsear: Make Silk (knitr files) from a sow's ear (an R script)

[![Build Status](https://travis-ci.org/richfitz/sowsear.png?branch=master)](https://travis-ci.org/richfitz/sowsear)

Make silk from a sow's ear by converting a plain R script into
something that can be knit()'ed with knitr!

Basically, convert an R script from something like this:

```
## # Heading
## Description
some.code()
```

To this

# Heading
Description
``` {r }
some.code()
```

which can then be run through `knit`.

Note that a version of `sowsear` is directly available in knitr as [`spin`](http://www.rdocumentation.org/packages/knitr/functions/spin), though with different defaults.