View source: R/make_filename.R
make_filename | R Documentation |
A helper function to create consistent file names for plots created with
ggsave_ext()
or data files exported with write_sf_ext()
.
make_filename( name = NULL, label = NULL, filetype = NULL, filename = NULL, path = NULL, prefix = NULL, postfix = NULL, cache = FALSE, pad = NULL, width = NULL )
name |
Name to make file name converted to snake case with
|
label |
Label to combine with name converted to snake case with
|
filetype |
File type or extension. |
filename |
File name; if file name is |
path |
Path to file or data directory. |
prefix |
File name prefix. "date" adds a date prefix, "time" adds a
date/time prefix; defaults to |
postfix |
File name postfix; defaults to |
cache |
If TRUE, path is set to the overedge cache directory using
|
pad |
Single padding character added to digits in string; defaults to "0" |
width |
Minimum width of padded strings. |
Other read_write:
read_sf_exif()
,
read_sf_ext()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.