list_files {io}R Documentation

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

list.files(R.home())
list_files(R.home())


[Package io version 0.3.2 Index]