View source: R/createExclusiveFile.R
| createExclusiveFile | R Documentation |
Name conflicts in filenames are avoided by
Including the time fractions below a second (tfrac).
Padding the name with 6 random letters.
Locking and retrying (as a last resort). The program stops after 10 unsuccessful attempts of finding a unique name.
Created by Jens Kleineheismann (2025).
createExclusiveFile(fpath = ".", prefix = "data", ext = ".dat")
fpath |
File path. Default: ".". |
prefix |
The filename. Default: "data". |
ext |
The file extension. Default: ".dat". |
A filename. Components: [prefix]_[year][month][day]_[h][min][sec]_[node]_[pid]_[pad]_[fracsec].[ext]
tmp<-tempdir()
fn<-createExclusiveFile(fpath=tmp, prefix="data", ext=".dat")
cat(fn)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.