Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
55 lines (40 loc) · 1.2 KB

File metadata and controls

55 lines (40 loc) · 1.2 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
REXE = Rscript --vanilla
RBATCH = R --vanilla CMD BATCH --no-save
PANDOC = pandoc -s -t html5+smart --mathjax
ROOT_DIR := $(dir $(realpath $(lastword $(MAKEFILE_LIST))))
slides.pdf handout.pdf notes.pdf: main.tex
quiz.pdf quiz_soln.pdf: quiz_main.tex
.INTERMEDIATE: main.tex slides.tex handout.tex notes.tex \
quiz.tex quiz_soln.tex quiz_main.tex
%.html: %.Rmd
$(REXE) -e "rmarkdown::render(\"$*.Rmd\",output_format=\"html_document\")"
%.md: %.Rmd
$(REXE) -e "rmarkdown::render(\"$*.Rmd\",output_format=\"md_document\")"
%.html: %.md
$(REXE) -e "rmarkdown::render(\"$*.md\",output_format=\"html_document\")"
%.Rout: %.R
$(RBATCH) $*.R $@
%.Rout.save: %.R
$(RBATCH) $*.R $@
%.R: %.Rnw
$(REXE) -e "knitr::purl(\"$*.Rnw\",output=\"$*.R\",documentation=0)"
%.R: %.Rmd
$(REXE) -e "knitr::purl(\"$*.Rmd\",output=\"$*.R\",documentation=0)"
%.tex: %.Rnw
$(REXE) -e "knitr::knit(\"$*.Rnw\",output=\"$*.tex\")"
%.pdf: export BSTINPUTS=$(ROOT_DIR)
%.pdf: %.tex
pdflatex $*
bibtex $* || /bin/true
pdflatex $*
pdflatex $*
.clean:
$(RM) *.bak *.tmp
$(RM) *.o *.so
$(RM) *.log *.aux *.out *.blg *.toc *.nav *.snm *.vrb *.brf *.cut
$(RM) Rplots.*
.fresh: .clean
$(RM) *.bbl
$(RM) -r tmp
clean: .clean
fresh: .fresh
Morty Proxy This is a proxified and sanitized view of the page, visit original site.