-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
65 lines (46 loc) · 1.89 KB
/
Copy pathREADME
File metadata and controls
65 lines (46 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
LitLR (version 0.0.1, 12/18/2013)
=================================
LitLR is a minimal reproducible research framework for LaTeX and R
that uses a subset of [Knitr's](http://yihui.name/knitr/)
functionality.
The main (only) advantage of LitLR is that it extracts R code from
ordinary LaTeX files that can be compiled directly to dvis or pdfs
whether or not the R code has run.
This package has just been started and should not be considered
production-ready. Use it for fun, and use it at your own risk!
Use
---
First, run
latex example.tex
and notice that the document ends, "which is ?." Then run
Rscript litlr.R example.tex
Rscript example.R
latex example.tex
and observe that the question mark has been replaced with a number.
The main benefit of this package is that the first instance of
latex example.tex
runs without error, which can be useful when working collaboratively
or if the R code takes a long time to execute.
Dependencies
------------
* `LaTeX` and the `listings` package
* `R` and the `knitr` package
License
-------
LitLR is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation; either version 2 of the License, or (at your
option) any later version.
LitLR is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with LitLR; if not, see <http://www.gnu.org/licenses/>.
Contact
-------
LitLR is developed and maintained by Gray Calhoun
<gray@clhn.co>. Please file bug reports in the project's bug tracker:
<https://github.com/grayclhn/LitLR/issues> and email Gray if you have
any other questions or concerns.
Copyright (C) 2013 Gray Calhoun