Unverified Commit 45729b52 authored by Francois Michonneau's avatar Francois Michonneau
Browse files

simplify code checking for knitr

parent 9341f9b9
generate_md_episodes <- function() {
if (require("knitr") && packageVersion("knitr") < '1.9.19') {
stop("knitr must be version 1.9.20 or higher")
} else stop("knitr 1.9.20 or above is needed to build the lessons.")
if (require("knitr") && packageVersion("knitr") < '1.9.19')
stop("knitr must be version 1.9.20 or higher")
if (!require("stringr"))
stop("The package stringr is required for generating the lessons.")
......
Supports Markdown
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