* Added "short.caption" argument to "print" to let the user
specify a Latex short caption used when creating a list of tables.
* Added an "is.null()" check on the "table.placement" argument.
+ * Put in some changes from John Leonard regarding the placement
+ of newlines when "longtable" and "add.to.row" are used together.
* Included "print.xtable" in the exported methods in the NAMESPACE file.
* Added an example of header and footer specification with longtable
to the vignette.
# Add further commands at the end of rows\r
if (type=="latex") {\r
PHEADER <- "\\hline\n"\r
+ # John Leonard <jleonard99@gmail.com> October 21, 2011\r
+ # The extra \hline gets in the way when using longtable and add.to.row\r
+ if(tabular.environment=="longtable" && !is.null(add.to.row) ) {\r
+ PHEADER <- ""\r
+ } \r
} else {\r
PHEADER <- ""\r
}\r
full[,multiplier*(0:(ncol(x)+pos-1))+6] <- ETD\r
\r
full[,multiplier*(ncol(x)+pos)+2] <- paste(EROW, lastcol[-(1:2)], sep=" ")\r
+ \r
+ # John Leonard <jleonard99@gmail.com> October 21, 2011\r
+ # Removes the "\\" from the last row of the contents so that \r
+ # booktabs (\bottomline) appears in the correct position.\r
+ if(tabular.environment=="longtable" & !is.null(add.to.row)) {\r
+ full[dim(full)[1],multiplier*(ncol(x)+pos)+2] <- "%\n" \r
+ }\r
+ \r
if (type=="latex") full[,2] <- ""\r
result <- result + lastcol[2] + paste(t(full),collapse="")\r
if (!only.contents) {\r