Skip to content

Commit 89f464a

Browse files
committed
Fix Rmd build tooling
1 parent 3f6f02f commit 89f464a

File tree

6 files changed

+20
-14
lines changed

6 files changed

+20
-14
lines changed

.Rbuildignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
^run\.R$
88
^\.gitignore$
99
^res$
10-
^tools$
1110
^man-roxygen$
1211
^\.travis\.yml$
1312
^staticdocs$
13+
^R/.*\.Rmd1$
14+
^R/.*\.html$

.Rinstignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
^tools$
2+
^Rmd$

Makefile

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
purl = Rscript --no-restore --no-save tools/purl.R "$(1)" "$(2)"
2+
3+
rfiles := $(patsubst Rmd/%.Rmd,R/%.R,$(wildcard Rmd/*.Rmd))
4+
rhtmlfiles := $(patsubst Rmd/%.Rmd,Rmd/%.html,$(wildcard Rmd/*.Rmd))
5+
rmdfiles := $(wildcard Rmd/*.Rmd)
6+
7+
all: $(rfiles)
8+
9+
R/%.R: Rmd/%.Rmd
10+
$(call purl,$^,$@)
11+
12+
clean:
13+
rm -f $(rfiles) $(rhtmlfiles)
14+
15+
.PHONY: all clean

R/Makefile

-12
This file was deleted.
File renamed without changes.

src/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
all:
2-
cd ../R && $(MAKE)
2+
cd ../ && $(MAKE)

0 commit comments

Comments
 (0)