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
- Host: GitHub
- URL: https://github.com/richfitz/sowsear
- Owner: richfitz
- Created: 2012-05-07T00:21:05.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2015-06-26T01:15:27.000Z (about 11 years ago)
- Last Synced: 2025-04-10T02:58:36.150Z (over 1 year ago)
- Language: R
- Homepage:
- Size: 121 KB
- Stars: 9
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sowsear: Make Silk (knitr files) from a sow's ear (an R script)
[](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.