| createStamp | R Documentation |
Create a stamp with script path, output file path and time stamp in it.
createStamp(
file,
script,
time,
model,
addto,
stamp.format,
stamp.funs = list(script = function(x) paste("Script:", x), time = function(x)
paste("Time:", if (inherits(x, "POSIXt")) format(x, "%d-%b-%Y %H:%M") else x),
model = function(x) paste("Model:", x), file = function(x) paste("Output:", x))
)
file |
the output file path |
script |
The script path |
time |
The default is to insert a time stamp taken from result of Sys.time(). Using the time argument you can overrule this by setting a fixed string instead. Use "" to omit. |
model |
An optional model name or object to be included in the stamp. |
addto |
An existing caption to keep above the caption created by this function. |
stamp.format |
A template for the stamp text using the
placeholders |
stamp.funs |
Named list of functions used to preprocess
|
A character string, or NULL if neither
script nor model is given.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.