Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/audy/make-rmarkdown
Make + RMarkdown for minimally replicable scientific computing.
https://github.com/audy/make-rmarkdown
Last synced: about 1 month ago
JSON representation
Make + RMarkdown for minimally replicable scientific computing.
- Host: GitHub
- URL: https://github.com/audy/make-rmarkdown
- Owner: audy
- License: mit
- Created: 2014-12-22T20:26:31.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-07-01T19:45:55.000Z (over 8 years ago)
- Last Synced: 2024-10-02T17:41:28.035Z (about 2 months ago)
- Language: Makefile
- Homepage: http://blog.agdr.co/2014/12/22/RMarkdown-+-Make.html
- Size: 10.7 KB
- Stars: 9
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# make + rmarkdown
![travis-ci](https://travis-ci.org/audy/make-rmarkdown.svg)
by: Austin G. Davis-Richardson
Example of using knitR + Make + RMarkdown for minimally replicable scientific
computing. Use this as a skeleton for new R projects.## Instructions
1. Data goes in `data/` (I usually use symlinks or git modules and track this in
a separate repository).
2. Rmarkdown files go in `notebooks`. I've been trying to treat them like a lab
notebook and write one per day.
3. Type `make` (this renders all Rmarkdown files to HTML).You should see something like:
```bash
$ make
notebooks/1-hello-world.Rmd -> notebooks/1-hello-world.html
echo "library(knitr); knit(\"notebooks/1-hello-world.Rmd\", \"notebooks/1-hello-world.html\")" | R --slave --vanilla --no-saveprocessing file: notebooks/1-hello-world.Rmd
|.................................................................| 100%
ordinary text without R codeoutput file: notebooks/1-hello-world.html
[1] "notebooks/1-hello-world.html"
```Or, using Docker:
```bash
$ docker build --tag myrproject$ docker run myrproject
```## TODO
- Add Packrat for dependency management/vendoring.