mirror of
https://github.com/rstudio/shiny.git
synced 2026-01-09 15:08:04 -05:00
Fix Rmd build tooling
This commit is contained in:
@@ -7,7 +7,8 @@
|
|||||||
^run\.R$
|
^run\.R$
|
||||||
^\.gitignore$
|
^\.gitignore$
|
||||||
^res$
|
^res$
|
||||||
^tools$
|
|
||||||
^man-roxygen$
|
^man-roxygen$
|
||||||
^\.travis\.yml$
|
^\.travis\.yml$
|
||||||
^staticdocs$
|
^staticdocs$
|
||||||
|
^R/.*\.Rmd1$
|
||||||
|
^R/.*\.html$
|
||||||
|
|||||||
2
.Rinstignore
Normal file
2
.Rinstignore
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
^tools$
|
||||||
|
^Rmd$
|
||||||
15
Makefile
Normal file
15
Makefile
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
purl = Rscript --no-restore --no-save tools/purl.R "$(1)" "$(2)"
|
||||||
|
|
||||||
|
rfiles := $(patsubst Rmd/%.Rmd,R/%.R,$(wildcard Rmd/*.Rmd))
|
||||||
|
rhtmlfiles := $(patsubst Rmd/%.Rmd,Rmd/%.html,$(wildcard Rmd/*.Rmd))
|
||||||
|
rmdfiles := $(wildcard Rmd/*.Rmd)
|
||||||
|
|
||||||
|
all: $(rfiles)
|
||||||
|
|
||||||
|
R/%.R: Rmd/%.Rmd
|
||||||
|
$(call purl,$^,$@)
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f $(rfiles) $(rhtmlfiles)
|
||||||
|
|
||||||
|
.PHONY: all clean
|
||||||
12
R/Makefile
12
R/Makefile
@@ -1,12 +0,0 @@
|
|||||||
purl = Rscript --no-restore --no-save ../tools/purl.R "$(1)" "$(2)"
|
|
||||||
|
|
||||||
rfiles := $(patsubst %.Rmd,%.R,$(wildcard *.Rmd))
|
|
||||||
rmdfiles := $(wildcard *.Rmd)
|
|
||||||
|
|
||||||
all: $(rfiles)
|
|
||||||
|
|
||||||
%.R: %.Rmd
|
|
||||||
$(call purl,$^,$@)
|
|
||||||
|
|
||||||
clean:
|
|
||||||
rm -f $(rfiles)
|
|
||||||
@@ -1,2 +1,2 @@
|
|||||||
all:
|
all:
|
||||||
cd ../R && $(MAKE)
|
cd ../ && $(MAKE)
|
||||||
|
|||||||
Reference in New Issue
Block a user