Commit c5652184 authored by Greg Wilson's avatar Greg Wilson Committed by GitHub
Browse files

Merge pull request #64 from gvwilson/building-r

Only try building R files if there are some
parents 05c8b44a 2e8a6b0c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -78,7 +78,7 @@ HTML_DST = \

## lesson-rmd:    : convert Rmarkdown files to markdown
lesson-rmd: $(RMD_SRC)
	@bin/knit_lessons.sh
	@bin/knit_lessons.sh $(RMD_SRC)

## lesson-check   : validate lesson Markdown.
lesson-check :
+4 −1
Original line number Diff line number Diff line
#!/usr/bin/env bash

if [ -d "_episodes_rmd" ] ; then
# Only try running R to translate files if there are some files present.
# The Makefile passes in the names of files.

if [ $# -ne 0 ] ; then
    Rscript -e "source('bin/generate_md_episodes.R')"
fi