find_packages: Find packages in R files

Description Usage Arguments Value Examples

View source: R/find_packages.R

Description

Scans all R files in specified folder for packages of the form pkg::func()

Usage

1
find_packages(folder)

Arguments

folder

Character string. Folder to search. (Full path required)

Value

Character vector. Names of the packages found

Examples

1
2
3
4
5
6
## Not run: 
#search all R files in the project root for packages used
find_packages(here::here("R"))


## End(Not run)

andybeet/abutils documentation built on Feb. 26, 2022, 12:34 a.m.