View source: R/packages--find.R
list_pkgs_used_in_dir | R Documentation |
These functions search for patterns, such as library(pkg)
, require(pkg)
,
pkg::function()
, or data(package = "pkg")
and return package names from
these expressions.
list_pkgs_used_in_dir(path = ".", regexp = "(?i)[.](rmd|r)$", ...)
list_pkgs_used_in_files(files)
path |
Path to directory with R and R Markdown files. Defaults to |
regexp |
Regular expression to filter file names. Defaults to R and Rmd files. |
... |
Further arguments to fs::dir_ls. |
files |
Path to R or Rmd files |
Character vector with package names.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.