localRFiles {SoDA}R Documentation

The R source files in the local directory

Description

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

Usage

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

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

[Package SoDA version 1.0-3 Index]