mkdate: Creates a file path from a name, directory, and extension,...

View source: R/dirfns.R

mkdateR Documentation

Creates a file path from a name, directory, and extension, then recursively creates each directory in the path. By default, the path is placed in a directory with today's date.

Description

Creates a file path from a name, directory, and extension, then recursively creates each directory in the path. By default, the path is placed in a directory with today's date.

Usage

mkdate(filename, ext = "", path = ".", append.date = T)

Arguments

filename

The output file name.

ext

The file extension.

path

The path to the output file.

append.date

Whether to write the output to a directory with today's date.

Value

The output file path.

Examples

mkdate("example","txt",path="path/to")

kewiechecki/dirfns documentation built on June 8, 2025, 5:18 a.m.