Skip to content

Commit

Permalink
fix: handle multiple objects returned
Browse files Browse the repository at this point in the history
  • Loading branch information
tin900 committed Mar 22, 2024
1 parent 310a2c1 commit c56624b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/validate_proj.R
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ validate_script_proj <- function(filepath = NULL, export_to_dataframe = FALSE) {
ins <- any(grep("install.packages", readLines(filepath)))

unused_objects <- check_unused_objects(filepath)

if (length(unused_objects > 1)) {
unused_objects <- paste0(unused_objects, collapse = " \n ")
}

## These should be used in a wrapper function, as they are project specific
assert_naming <- any(grep("assert_naming", readLines(filepath)))
Expand Down

0 comments on commit c56624b

Please sign in to comment.