file_datestamp: Append a datestamp to a filename

Description Usage Arguments Value

View source: R/utils_filesave.R

Description

Will also append a counter to prevent overwriting existing files

Usage

1
2
3
4
file_datestamp(
  input_filename = stop("Input filename(s) required"),
  path = getwd()
)

Arguments

input_filename

Input filename(s) to check, as characters

path

Optional path to prepend to filename. Defaults to current working directory. If a relative path is provided, path is assumed relative to the current working directory.

Value

A modified filepath


adamleejohnson/r-tools documentation built on Jan. 7, 2022, 5:35 p.m.