]> git.donarmstrong.com Git - xtable.git/commitdiff
Allow "table*" as a value for the "floating.environment".
authorroosen <roosen@edb9625f-4e0d-4859-8d74-9fd3b1da38cb>
Thu, 6 Oct 2011 06:07:02 +0000 (06:07 +0000)
committerroosen <roosen@edb9625f-4e0d-4859-8d74-9fd3b1da38cb>
Thu, 6 Oct 2011 06:07:02 +0000 (06:07 +0000)
git-svn-id: svn://scm.r-forge.r-project.org/svnroot/xtable@6 edb9625f-4e0d-4859-8d74-9fd3b1da38cb

pkg/R/print.xtable.R
pkg/man/print.xtable.Rd

index 84abb532b899f93bbf5d28c9c986ce9dd91ef037..43fb044f772bea3bcc837f468768a5a370641d36 100644 (file)
@@ -111,7 +111,7 @@ print.xtable <- function(
   if (length(type)>1) stop("\"type\" must have length 1")
   type <- tolower(type)
   if (!all(!is.na(match(type,c("latex","html"))))) stop("\"type\" must be in {\"latex\", \"html\"}")
-  if (!all(!is.na(match(floating.environment,c("table","sidewaystable"))))) stop("\"type\" must be in {\"table\", \"sidewaystable\"}")
+  if (!all(!is.na(match(floating.environment,c("table","table*","sidewaystable"))))) stop("\"type\" must be in {\"table\", \"table*\", \"sidewaystable\"}")
   if (!all(!is.na(match(unlist(strsplit(table.placement, split="")),c("H","h","t","b","p","!"))))) {
     stop("\"table.placement\" must contain only elements of {\"h\",\"t\",\"b\",\"p\",\"!\"}")
   }
index 21fb2ce7a1de4fc66acd0fef7eea3d14d568a823..613ea8dbfecf51303c8cdadb2662e2faaea28d5f 100644 (file)
@@ -14,7 +14,7 @@
                 Default value is \code{FALSE}.}
   \item{floating}{If \code{TRUE} and \code{type="latex"}, the resulting table will be a floating table (using, for example, \code{\\begin\{table\}} and \code{\\end\{table\}}).  See \code{floating.environment} below. Default value is \code{TRUE}.}
   \item{floating.environment}{If \code{floating=TRUE} and \code{type="latex"}, the resulting table uses the specified floating environment.
-  Possible values are \code{"table"} or \code{"sidewaystable"} (defined in the LaTeX package 'rotating').
+  Possible values are \code{"table"}, \code{"table*"}, or \code{"sidewaystable"} (defined in the LaTeX package 'rotating').
                 Default value is \code{"table"}.}
   \item{table.placement}{If \code{floating=TRUE} and \code{type="latex"}, the floating table will have placement given by \code{table.placement} where \code{table.placement} must be \code{NULL} or contain only elements of \{"h","t","b","p","!","H"\}.
                 Default value is \code{"ht"}.}