Create a unique run directory

Create a new uniquely named run directory within the specified runs_dir.

unique_run_dir(runs_dir = getOption("tfruns.runs_dir", "runs"),
  seconds_scale = 0)



Directory containing runs. Defaults to "runs" beneath the current working directory (or to the value of the tfruns.runs_dir R option if specified).


Decimal scale for the seconds component of the timestamp. Defaults to 0 which results in only the rounded seconds value being used in the timestamp. Specify larger numbers to include a decimal component (useful if you need to create many unique run directories at the same time).


The directory name will be a timestamp (in GMT time). If a duplicate name is generated then the function will wait long enough to return a unique one.