Skip to content

Commit

Permalink
Merge pull request #114 from jhudsl/cansavvy/bug-fix
Browse files Browse the repository at this point in the history
fix root_dir error
  • Loading branch information
cansavvy authored Mar 1, 2023
2 parents eab3165 + 69aef62 commit a0dcc42
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions R/coursera.R
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,10 @@ render_without_toc <- function(output_dir = file.path("docs", "no_toc"),
input_quiz_dir = "quizzes",
output_quiz_dir = "coursera_quizzes",
verbose = TRUE) {

# Find root directory by finding `_bookdown.yml` file
root_dir <- bookdown_path()

# Output files:
output_dir <- file.path(root_dir, output_dir)

Expand All @@ -230,9 +234,6 @@ render_without_toc <- function(output_dir = file.path("docs", "no_toc"),
message(paste0("Creating output folder: ", output_dir))
dir.create(output_dir, recursive = TRUE, showWarnings = FALSE)
}

# Find root directory by finding `_bookdown.yml` file
root_dir <- bookdown_path()

###### Declare all the file paths relative to root directory ######
# Input files:
Expand Down

0 comments on commit a0dcc42

Please sign in to comment.