View source: R/other_functions.R
listfiles | R Documentation |
This function lets the user list all files on a given directory. It also lets filter files which contains a string.
listfiles(folder = getwd(), recursive = TRUE, regex = NA, images = FALSE)
folder |
Character. Directory which contains files |
recursive |
Boolean. Should the listing recurse into directories? |
regex |
Character. String to use for filtering files |
images |
Boolean. Bring only image files? |
data.frame with relevant data for each file on
folder
directory.
Other Tools:
autoline()
,
bind_files()
,
bring_api()
,
chr2num()
,
db_download()
,
db_upload()
,
export_plot()
,
export_results()
,
files_functions()
,
font_exists()
,
formatColoured()
,
formatHTML()
,
get_credentials()
,
glued()
,
grepm()
,
h2o_selectmodel()
,
haveInternet()
,
image_metadata()
,
importxlsx()
,
ip_data()
,
json2vector()
,
list_cats()
,
mail_send()
,
markdown2df()
,
move_files()
,
msplit()
,
myip()
,
quiet()
,
read.file()
,
statusbar()
,
tic()
,
try_require()
,
updateLares()
,
warnifnot()
,
what_size()
# All files in current directory (without recursive files)
df <- listfiles(recursive = TRUE)
head(df, 3)
# All files in current directory (with recursive files)
df <- listfiles(recursive = TRUE)
tail(df, 3)
# Check R files using regex
df <- listfiles(regex = "\\.R$")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.