Look for functions called with `::` and library/requires in folder of scripts
att_from_rscripts(path = "R", pattern = "*.[.](r|R)$", recursive = TRUE)
directory with R scripts inside or vector of R scripts
pattern to detect R script files
logical. Should the listing recurse into directories?
vector of character of packages names found in the R script
dummypackage <- system.file("dummypackage",package = "attachment") # browseURL(dummypackage) att_from_rscripts(path = file.path(dummypackage, "R")) #>  "stats" att_from_rscripts(path = list.files(file.path(dummypackage, "R"), full.names = TRUE)) #>  "stats"