Learn R Programming

Smisc (version 0.3.9.1)

timeStamp: Embeds the present datetime into a file name

Description

Embeds the present datetime into a file name

Usage

timeStamp(description, extension)

Arguments

description

Character vector giving the base name(s) of the file(s)

extension

Character vector giving the extension(s) of the file(s) (excluding the period)

Value

Character string of the form description_YYYY-MM-DD_HHMMSS.extension

Examples

Run this code
# NOT RUN {
timeStamp("aFilename", "txt")
# }

Run the code above in your browser using DataLab