list_r_files.Rd
Lists all files in a package directory with the .R or .r extension.
list_r_files(pkg = ".", ext = ".[Rr]$")
pkg | The package to use, can be a file path to the package or a package object. See [devtools::as.package()] for more information. |
---|---|
ext | character; regular expression for the file extension to look for. Default is to include .r and .R files. |
vector; vector of file paths