We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c19c252 + 926c4d8 commit a7c7240Copy full SHA for a7c7240
Makefile
@@ -55,7 +55,8 @@ preview : $(DST_ALL)
55
-o $@ $<
56
57
# Pattern to convert R Markdown to Markdown.
58
-%.md: %.Rmd $(R_CHUNK_OPTS)
+%.md: %.Rmd $(R_CHUNK_OPTS) tools/check_knitr_version.R
59
+ Rscript -e "source('tools/check_knitr_version.R')"
60
Rscript -e "knitr::knit('$$(basename $<)', output = '$$(basename $@)')"
61
62
## commands : Display available commands.
tools/check_knitr_version.R
@@ -0,0 +1,5 @@
1
+if (require("knitr")) {
2
+ if (packageVersion("knitr") < '1.9.19') {
3
+ stop("knitr must be version 1.9.20 or higher")
4
+ }
5
+} else stop("knitr 1.9.20 or above is needed to build the lessons.")
0 commit comments