metrumresearchgroup / review

helpful tools for organizing and performing quality control (QC) tasks
https://metrumresearchgroup.github.io/review/
2 stars 0 forks source link

Create function to compare scripts in folder with those in the QC log #17

Closed michaelmcd18 closed 1 year ago

michaelmcd18 commented 1 year ago

Sample code here:

library(tidyverse)
library(mrgmisc)

log_contents <- review::logSummary() %>% 
  filter(str_detect(file, "script")) %>% 
  mutate(file = str_extract(file, "(?<=script/)[:print:]+")) %>% 
  pull(file)
script_contents <- list.files(here::here("script"))

pool(log_contents, script_contents)

Ideally we're interested in getting a function that would output a list of all the files that are in that directory but not in the QC log.

Things to consider: