Skip to content

Commit

Permalink
Add some debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
avahoffman committed Jan 5, 2024
1 parent 1687105 commit 47d78d3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/render_modules.R
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,15 @@ if (length(lab_files) != 0) {

# loop thru and render all lecture files to html
# Specific module name will be pulled out based on the dir name in modules/

message("debug 1")
if (length(lecture_files) != 0) {
message("debug 2")
for (i in 1:length(lecture_files)) {
message("debug 3")
module_name <-
stringr::str_split(lecture_files, pattern = '/')[[i]][2]
message("debug 4")
rmarkdown::render(lecture_files[i],
output_dir = paste0("modules/", module_name))
}
Expand Down

0 comments on commit 47d78d3

Please sign in to comment.