Learn R Programming

SoDA (version 1.0-6.1)

localRFiles: 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

Examples

Run this code
# NOT RUN {
## all the example files for this package
localRFiles(system.file("R-ex",package="SoDA"))
# }

Run the code above in your browser using DataLab