dir.png: Concatenates a path, filename, and file extension into an...

View source: R/dirfns.R

dir.pngR Documentation

Concatenates a path, filename, and file extension into an output path, then opens a png connection at the output path. Any folders in the path that do not exist are created.

Description

Concatenates a path, filename, and file extension into an output path, then opens a png connection at the output path. Any folders in the path that do not exist are created.

Usage

dir.png(filename, path = ".", ..., append.date = T)

Arguments

filename

The output file name.

path

The path to the output file.

...

Additional arguments to png.

append.date

Whether to write the output to a directory with today's date.

res

The nominal resolution in ppi.

width

The width of the device.

height

The height of the device.

See Also

dir.img, grDevices::png

Examples

dir.png("example",path="path/to")
plot(1:5,1:5)
dev.off()

kewiechecki/dirfns documentation built on June 8, 2025, 5:18 a.m.