From: roosen Date: Thu, 6 Oct 2011 06:07:02 +0000 (+0000) Subject: Allow "table*" as a value for the "floating.environment". X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=63c1c0432a1482586c7c2932d2d038209721b96a;p=xtable.git Allow "table*" as a value for the "floating.environment". git-svn-id: svn://scm.r-forge.r-project.org/svnroot/xtable@6 edb9625f-4e0d-4859-8d74-9fd3b1da38cb --- diff --git a/pkg/R/print.xtable.R b/pkg/R/print.xtable.R index 84abb53..43fb044 100644 --- a/pkg/R/print.xtable.R +++ b/pkg/R/print.xtable.R @@ -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\",\"!\"}") } diff --git a/pkg/man/print.xtable.Rd b/pkg/man/print.xtable.Rd index 21fb2ce..613ea8d 100644 --- a/pkg/man/print.xtable.Rd +++ b/pkg/man/print.xtable.Rd @@ -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"}.}