Skip to content

Commit

Permalink
What are these file paths?
Browse files Browse the repository at this point in the history
  • Loading branch information
cansavvy committed Dec 13, 2024
1 parent 7f215dd commit 70659d2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/check_testthat.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@ library(magrittr)
# Find .git root directory
root_dir <- rprojroot::find_root(rprojroot::has_dir(".github"))

message(root_dir)

out_file <- list.files(pattern = ".Rout$|Rout.fail$", file.path(root_dir, "check"),
recursive = TRUE, full.names = TRUE)

message(out_file)

check_content <- readLines(out_file)
test_result <- grep("\\[ FAIL", check_content, value = TRUE)[1]
test_result <- unlist(strsplit(test_result, "\\||\\[|\\]"))
Expand Down

0 comments on commit 70659d2

Please sign in to comment.