dir_png: Directory .png Files

Description Usage Arguments Value See Also Examples

Description

Given a directory, dir_png will determine the files (with optional full path; see full argument) that are .png files.

Usage

1
dir_png(path, full = FALSE)

Arguments

path

Path to the directory where the .png files are to be located.

full

logical. If TRUE then the entire path to each .pg image is given.

Value

Returns a character vector with image names that are .png files.

See Also

file_ext

Examples

1
2
3
4
5
6
dir.create("DELETE_ME")
png("DELETE_ME/test1.png"); plot(1:10); dev.off()
png("DELETE_ME/test2.png"); plot(1:10); dev.off()
pdf("DELETE_ME/test3.pdf"); plot(1:10); dev.off()
dir_png("DELETE_ME")
unlink("DELETE_ME", recursive = TRUE, force = FALSE)

trinker/embodied documentation built on May 31, 2019, 8:42 p.m.