find_used_packages: Find Files Where Specific Packages Are Used

Description Usage Arguments Value Examples

View source: R/reinstallr.R

Description

Find Files Where Specific Packages Are Used

Usage

1
find_used_packages(packages, path = NULL, pattern = NULL)

Arguments

packages

Vector of packages to look for

path

Directory which is scanned recursively. Default is the working directory.

pattern

Regex to identify R source files. Default is .*\.(R|r|Rnw|Rhtml|Rpres|Rmd)$

Value

A data.frame with the files which are using the specified packages

Examples

1
2
3
4
## Not run: 
find_used_packages('dplyr', path = '../')

## End(Not run)

reinstallr documentation built on Nov. 27, 2021, 9:06 a.m.