Skip to content

Commit df9ba82

Browse files
authored
Merge pull request #145 from fmichonneau/fix-checkpoint
fix carpentries/lesson-example#118: use checkpoint::scanForPackages
2 parents 50d94bd + db363c8 commit df9ba82

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/generate_md_episodes.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ generate_md_episodes <- function() {
88

99
if (require("checkpoint")) {
1010
required_pkgs <-
11-
checkpoint:::projectScanPackages(project = "_episodes_rmd",
12-
verbose=FALSE, use.knitr = TRUE)$pkgs
11+
checkpoint:::scanForPackages(project = "_episodes_rmd",
12+
verbose=FALSE, use.knitr = TRUE)$pkgs
1313
} else {
1414
stop("The checkpoint package is required to build the lessons.")
1515
}
@@ -22,7 +22,7 @@ generate_md_episodes <- function() {
2222
install.packages(missing_pkgs)
2323
}
2424

25-
## find all the Rmd files, and generates the paths for their respective outputs
25+
## find all the Rmd files, and generate the paths for their respective outputs
2626
src_rmd <- list.files(pattern = "??-*.Rmd$", path = "_episodes_rmd", full.names = TRUE)
2727
dest_md <- file.path("_episodes", gsub("Rmd$", "md", basename(src_rmd)))
2828

0 commit comments

Comments
 (0)