Skip to content

Commit

Permalink
Fix for non-package directories
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborcsardi committed Oct 22, 2024
1 parent 0609d8c commit 84e5551
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/scan-deps.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#' @keywords internal

scan_deps <- function(path = ".") {
path <- find_project_root(path)
path <- tryCatch(find_project_root(path), error = function(...) path)
paths <- dir(path, pattern = "[.](R|r|Rmd|rmd)$", recursive = TRUE)
full_paths <- normalizePath(file.path(path, paths))
deps_list <- lapply(full_paths, scan_path_deps)
Expand Down

0 comments on commit 84e5551

Please sign in to comment.