Replace given filename by a version that contains an incremental number in order to prevent overwriting existing files.
Source:R/utilities.R
ensure_unique_filename.Rd
Replace given filename by a version that contains an incremental number in order to prevent overwriting existing files.