find_used_packages {reinstallr}R Documentation

Find Files Where Specific Packages Are Used

Description

Find Files Where Specific Packages Are Used

Usage

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

## Not run: 
find_used_packages('dplyr', path = '../')

## End(Not run)

[Package reinstallr version 0.1.5 Index]