file_datestamp: Append a datestamp to a filename

View source: R/utils_filesave.R

file_datestampR Documentation

Append a datestamp to a filename

Description

Will also append a counter to prevent overwriting existing files

Usage

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-ajtools documentation built on April 4, 2022, 7:24 a.m.