Skip to content
Snippets Groups Projects
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
Branches
Tags
No related merge requests found
......@@ -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 :
......
#!/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
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment