Skip to contents

Lists all data files in the workspace or files matching a certain pattern.

Usage

aou_ls_workspace(pattern = "", silent = FALSE, ...)

Arguments

pattern

Regular expression, such as "*.csv" or a single file name e.g., "mydata.csv". Default will find all files apart from notebooks (.ipynb, .Rmd, .qmd files).

silent

Whether to omit the names of files found. Defaults to FALSE.

...

Other arguments passed to list.files()

Value

A vector of file names

Examples

my_workspace_files <- aou_ls_workspace(silent = TRUE)
aou_ls_workspace("*.csv")
#> ! No files found with that pattern.
aou_ls_workspace(path = "data")
#> ! No files found with that pattern.