list_tmp: Clean temporary files

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/temp_functions.R

Description

List files in tempdir()

Usage

1
list_tmp(ext = NULL, full = TRUE)

Arguments

ext

a string defining a file extension (defaul is NULL)

full

a TRUE/FALSE value indicating if the function should return the full path of the files (default is TRUE).

Details

list_tmp() will check and print files in tempdir(). If any file extension is informed, will print all files in the root of temporary directory. If some file extension is informed will check and print all files matching that extension in tempdir(), including nested folders.

Value

list files in tempdir()

Author(s)

Bruno Pinheiro

See Also

Examples

1
2
3
4
5
6
7
8
## Not run: 
# to list files in tempdir() root
list_tmp()

# to list files of an extension
list_tmp(".zip")

## End(Not run)

bruno-pinheiro/asha documentation built on May 25, 2019, 2:52 a.m.