booktabs = getOption("xtable.booktabs", FALSE),\r
scalebox = getOption("xtable.scalebox", NULL),\r
width = getOption("xtable.width", NULL),\r
+ timestamp = date(),\r
...)\r
{\r
## If caption is length 2, treat the second value as the "short caption"\r
"margintable"))))) {\r
stop("\"type\" must be in {\"table\", \"table*\", \"sidewaystable\", \"margintable\"}")\r
}\r
- if ((match(floating.environment,\r
- c("table","table*","sidewaystable","margintable"))\r
- == "margintable") & (!is.null(table.placement))) {\r
+ if (("margintable" %in% floating.environment)\r
+ & (!is.null(table.placement))) {\r
warning("margintable does not allow for table placement; setting table.placement to NULL")\r
table.placement <- NULL\r
}\r
info$language + " " + info$major + "." + info$minor +\r
" by xtable " + packageDescription('xtable')$Version +\r
" package" + ECOMMENT\r
- result <- result + BCOMMENT + date() + ECOMMENT\r
+ if (!is.null(timestamp)){ \r
+ result <- result + BCOMMENT + timestamp + ECOMMENT\r
+ } \r
## Claudio Agostinelli <claudio@unive.it> dated 2006-07-28 only.contents\r
if (!only.contents) {\r
result <- result + BTABLE\r