localRFiles: The R source files in the local directory

Description Usage Arguments Value Author(s) Examples

View source: R/localRFiles.R

Description

Returns the names of the R source files in a directory, by default the current working directory.

Usage

1
localRFiles(directory = getwd(), suffix = "[.][RSq]$", ask = FALSE)

Arguments

directory

Where to look, by default the directory in which R is currently running

suffix

Regular expression to identify R source files.

ask

If TRUE, uses the menu function to prompt the user for one of the local R files or to enter a file name.

Value

The character vector of matching file names.

menuRFile

Author(s)

John M. Chambers

Examples

1
2
## all the example files for this package
localRFiles(system.file("R-ex",package="SoDA"))

SoDA documentation built on Oct. 28, 2020, 9:07 a.m.