vfile: Make a versioned filename

View source: R/functions.R

vfileR Documentation

Make a versioned filename

Description

This function returns a filename with a version extension to avoid overwriting older results. The extension may either be the date (with time) or a random hash. The latter may be useful if you want to obscure the date of the data generation.

Usage

vfile(base, ending = "Rd", format = "%y%m%d", hash = FALSE)

Arguments

base

character giving the main part of the filename

ending

file ending

format

format for date time version

hash

(defunct) if true a hash is used for versioning the filename


floatofmath/bt88.03.704 documentation built on March 25, 2022, 12:28 p.m.