Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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

Author(s)

John M. Chambers

Examples

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

SoDA

Functions and Examples for "Software for Data Analysis"

v1.0-6.1
GPL (>= 2)
Authors
John M Chambers
Initial release
2014-06-12

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.