timestamp_it | R Documentation |
x
, typically a pathThis function just appends a timestamp (format YYYYMMDDHHMMSS), separated by
an underscore (_) to whatever x
is (so, x
is coerced to character).
By default, it assumes x
is a path and then adds the timestamp before
the last extension (if there is any).
timestamp_it(x, is_path = TRUE)
x |
a character or an object coercible to character |
is_path |
logical to indicate if x is a path, then it removes extension before appending the timestamp |
a character appending a timestamp to x
# typical usage
timestamp_it("this/path/may/not/exist/")
timestamp_it("this/path/may/not/exist.txt")
# weird usage
timestamp_it(mtcars, FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.