ensure_unique_filename {growR} | R Documentation |
Replace given filename by a version that contains an incremental number in order to prevent overwriting existing files.
ensure_unique_filename(path, add_num = TRUE)
path |
string; Filename including path for which to check uniqueness. |
add_num |
boolean; if TRUE, add the incremental number anyways, even if no filename conflict exists. |
A unique filename.