Get all packages called in vignettes folder
att_from_rmds( path = "vignettes", pattern = "*.[.](Rmd|rmd|qmd)$", recursive = TRUE, warn = -1, inside_rmd = FALSE, inline = TRUE ) att_from_qmds( path = "vignettes", pattern = "*.[.](Rmd|rmd|qmd)$", recursive = TRUE, warn = -1, inside_rmd = FALSE, inline = TRUE )
path to directory with Rmds or vector of Rmd files
pattern to detect Rmd files
logical. Should the listing recurse into directories?
-1 for quiet warnings with purl, 0 to see warnings
Logical. Whether function is run inside a Rmd, in case this must be executed in an external R session
Logical. Default TRUE. Whether to explore inline code for dependencies.
Character vector of packages called with library or require. knitr and rmarkdown are added by default to allow building the vignettes if the directory contains "vignettes" in the path
dummypackage <- system.file("dummypackage",package = "attachment") # browseURL(dummypackage) att_from_rmds(path = file.path(dummypackage,"vignettes")) #>  "knitr" "rmarkdown" "glue"