Description Usage Arguments Details Value Author(s) Examples
Creates a file name given a prefix and other optional paramters for a figure or data file. Also checks if file exists.
1 2 3 4 5  | makeFigName(prefix, ext = "pdf", prefix0 = "Fig", date = TRUE,
  path = ".")
makeDatName(prefix, ext = "rda", prefix0 = "Dat", date = TRUE,
  path = ".")
 | 
prefix | 
 A file specific prefix.  | 
ext | 
 The extension; default is   | 
prefix0 | 
 The general prefix for figures. Default is
  | 
date | 
 Should the data (as reported by   | 
path | 
 The path to the file. Default is   | 
TODO: If file exists, create the next increment.
A character with the figure file name.
Laurent Gatto
1 2 3 4 5  | makeFigName("foo")
makeFigName("foo", date = FALSE)
makeDatName("foo", date = FALSE)
makeFigName("foo", path = "~/projects/big-project/figs")
makeDatName("foo", path = "~/projects/big-project/Data")
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.