Skip to content
Snippets Groups Projects
Commit 08d224ae authored by Greg Wilson's avatar Greg Wilson
Browse files

Only try building R files if there are some

parent 86676036
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