Either construct a filename
object with the filename
constructor or convert an existing file name from character
to
filename
using as.filename
.
Then, manage the tags and extensions of the filename
object with
insert
.
The functions set_fpath
, set_fext
,
set_fdate
, and set_ftime
can be used
on both character
or filename
to modify file names.
Use tag
to quickly add or replace a tag on a file name (as a
character
or filename
and coerce into a character
.
The date
and time
parameters can be specified as
character
vectors or date/time objects. If time
is given as a POSIXct
, it will override date
.
If these parameters are both NULL
, automated date and time stamping
may be done and is controlled by getOption("filenamer.timestamp")
.
If this option is NULL
, 0, or less,
no date or time stamping will be done;
if it is 1, only date stamping will be done;
if it is 2 or greater, date-time stamping will be done (default).
Set date
or time
to NA
to suppress date or
time stamping for a particular filename
.
Stamps are shown in ISO 8601 date format (
(
platforms and are thus omitted; hyphens are omitted from date-time stamps
for brevity.
By default, a date stamped subdirectory is appended to the filepath.
To disable this behaviour, set subdir
to FALSE
or disable
path stamping globally by options(filenamer.path.timestamp = 0)
.
This option is similar to filenamer.timestamp
above.