From: roosen Date: Fri, 7 Oct 2011 07:12:18 +0000 (+0000) Subject: Add some newlines in the Rd files. In the PDF version of the help the lines were... X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=d2634b8bf3bbf59e0f321486c920060d1d3a67a6;p=xtable.git Add some newlines in the Rd files. In the PDF version of the help the lines were running off the page. git-svn-id: svn://scm.r-forge.r-project.org/svnroot/xtable@11 edb9625f-4e0d-4859-8d74-9fd3b1da38cb --- diff --git a/pkg/man/print.xtable.Rd b/pkg/man/print.xtable.Rd index 613ea8d..0e32eb4 100644 --- a/pkg/man/print.xtable.Rd +++ b/pkg/man/print.xtable.Rd @@ -2,7 +2,15 @@ \alias{print.xtable} \title{Print Export Tables} \description{Function returning and displaying or writing to disk the LaTeX or HTML code associated with the supplied object of class \code{xtable}.} -\usage{\method{print}{xtable}(x, type="latex", file="", append=FALSE, floating=TRUE, floating.environment="table", table.placement = "ht", caption.placement="bottom", latex.environments=c("center"),tabular.environment = "tabular", size=NULL,hline.after=c(-1,0,nrow(x)), NA.string = "", include.rownames=TRUE, include.colnames=TRUE, only.contents=FALSE, add.to.row=NULL, sanitize.text.function=NULL, sanitize.rownames.function=sanitize.text.function, sanitize.colnames.function=sanitize.text.function, math.style.negative=FALSE, html.table.attributes="border=1", ...)} +\usage{ + \method{print}{xtable}(x, type="latex", file="", append=FALSE, floating=TRUE, + floating.environment="table", table.placement = "ht", caption.placement="bottom", + latex.environments=c("center"),tabular.environment = "tabular", size=NULL, + hline.after=c(-1,0,nrow(x)), NA.string = "", include.rownames=TRUE, + include.colnames=TRUE, only.contents=FALSE, add.to.row=NULL, + sanitize.text.function=NULL, sanitize.rownames.function=sanitize.text.function, + sanitize.colnames.function=sanitize.text.function, math.style.negative=FALSE, + html.table.attributes="border=1", ...)} \arguments{ \item{x}{An object of class \code{"xtable"}.} \item{type}{Type of table to produce. Possible values for \code{type} are \code{"latex"} or \code{"html"}. diff --git a/pkg/man/xtable.Rd b/pkg/man/xtable.Rd index ab9c7ca..4122518 100644 --- a/pkg/man/xtable.Rd +++ b/pkg/man/xtable.Rd @@ -231,7 +231,8 @@ addtorow$pos <- list() addtorow$pos[[1]] <- c(0, 2) addtorow$pos[[2]] <- 4 addtorow$command <- c('\\vspace{2mm} \n', '\\vspace{10mm} \n') -print(xres, add.to.row=addtorow, include.rownames=FALSE, include.colnames=TRUE, only.contents=TRUE, hline.after=c(0, 0, 9, 9)) +print(xres, add.to.row=addtorow, include.rownames=FALSE, include.colnames=TRUE, + only.contents=TRUE, hline.after=c(0, 0, 9, 9)) ## Demostrate include.rownames, include.colnames, ## only.contents and add.to.row arguments in Rweave files @@ -259,7 +260,8 @@ print(xres, add.to.row=addtorow, include.rownames=FALSE, include.colnames=TRUE, addtorow$pos[[1]] <- c(seq(4, 40, 5), seq(49, 85, 5)) addtorow$pos[[2]] <- 45 addtorow$command <- c('\\vspace{2mm} \n', '\\newpage \n') - print(xres, add.to.row=addtorow, include.rownames=FALSE, include.colnames=F ALSE, only.contents=TRUE, hline.after=NULL) + print(xres, add.to.row=addtorow, include.rownames=FALSE, include.colnames=FALSE, + only.contents=TRUE, hline.after=NULL) @ \end{longtable} \end{small} @@ -295,11 +297,14 @@ print(xtable(mat), type="latex", sanitize.text.function = function(x){x}) print(xtable(anova(lm.D9)),type=i,file=outFileName,append=TRUE) print(xtable(glm.D93),type=i,file=outFileName,append=TRUE) print(xtable(anova(glm.D93,test="Chisq")),type=i,file=outFileName,append=TRUE) - print(xtable(glm.D93,align="r|llrc"),include.rownames=FALSE,include.colnames=TRUE,type=i,file=outFileName,append=TRUE) - print(xtable(glm.D93,align="r||llrc"),include.rownames=TRUE,include.colnames=FALSE,type=i,file=outFileName,append=TRUE) - print(xtable(glm.D93,align="|r||llrc"),include.rownames=FALSE,include.colnames=FALSE,type=i,file=outFileName,append=TRUE) + print(xtable(glm.D93,align="r|llrc"),include.rownames=FALSE,include.colnames=TRUE, + type=i,file=outFileName,append=TRUE) + print(xtable(glm.D93,align="r||llrc"),include.rownames=TRUE,include.colnames=FALSE, + type=i,file=outFileName,append=TRUE) + print(xtable(glm.D93,align="|r||llrc"),include.rownames=FALSE,include.colnames=FALSE, + type=i,file=outFileName,append=TRUE) print(xtable(glm.D93,align="|r||llrc|"),type=i,file=outFileName,append=TRUE) - print(xtable(anova(glm.D93)),hline.after=c(1),size="small",type=i,file=outFileName,append=TRUE) + print(xtable(anova(glm.D93)),hline.after=c(1),size="small",type=i,file=outFileName, append=TRUE) if(require(stats,quietly=TRUE)) { print(xtable(pr1),type=i,file=outFileName,append=TRUE) print(xtable(summary(pr1)),type=i,file=outFileName,append=TRUE) @@ -307,8 +312,10 @@ print(xtable(mat), type="latex", sanitize.text.function = function(x){x}) } temp.table <- xtable(ts(cumsum(1+round(rnorm(100), 2)), start = c(1954, 7), frequency=12)) caption(temp.table) <- "Time series example" - print(temp.table,type=i,file=outFileName,append=TRUE,caption.placement="top",table.placement="h") - print(temp.table,type=i,file=outFileName,append=TRUE,caption.placement="bottom",table.placement="htb") + print(temp.table,type=i,file=outFileName,append=TRUE,caption.placement="top", + table.placement="h") + print(temp.table,type=i,file=outFileName,append=TRUE,caption.placement="bottom", + table.placement="htb") } }