Learn R Programming

io (version 0.3.2)

list_files: List the files in a directory.

Description

This function extends list.files by excluding the listing of directories.

Usage

list_files(path = ".", full.names = FALSE, ...)

Arguments

path

a character vector of path names

full.names

whether to return absolute paths

...

other arguments passed to list.files

Value

a character vector of only names of files

Examples

Run this code
# NOT RUN {
list.files(R.home())
list_files(R.home())

# }

Run the code above in your browser using DataLab