Skip to content

Commit 468a433

Browse files
authored
Merge pull request #146 from fmichonneau/check-version-checkpoint
make sure that checkpoint version is 0.4.0 or higher
2 parents df9ba82 + 53c0a7f commit 468a433

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/generate_md_episodes.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ generate_md_episodes <- function() {
66
if (!require("stringr"))
77
stop("The package stringr is required for generating the lessons.")
88

9-
if (require("checkpoint")) {
9+
if (require("checkpoint") && packageVersion("checkpoint") >= '0.4.0') {
1010
required_pkgs <-
1111
checkpoint:::scanForPackages(project = "_episodes_rmd",
1212
verbose=FALSE, use.knitr = TRUE)$pkgs
1313
} else {
14-
stop("The checkpoint package is required to build the lessons.")
14+
stop("The checkpoint package (>= 0.4.0) is required to build the lessons.")
1515
}
1616

1717
missing_pkgs <- required_pkgs[!(required_pkgs %in% rownames(installed.packages()))]

0 commit comments

Comments
 (0)