Skip to content

Commit

Permalink
Normalize directory path when discovering a tutorial file
Browse files Browse the repository at this point in the history
  • Loading branch information
gadenbuie committed Dec 29, 2021
1 parent a432bfd commit e63000d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions R/run.R
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,7 @@ run_validate_tutorial_file <- function(path) {
return(list(valid = FALSE, dir = path))
}

path <- normalizePath(path)

list(valid = TRUE, file = basename(path), dir = dirname(path))
list(valid = TRUE, file = basename(path), dir = normalizePath(dirname(path)))
}

run_validate_tutorial_pkg <- function(name, package) {
Expand Down

0 comments on commit e63000d

Please # to comment.