inputTex: Create Tex code to input LaTeX tables

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/inputTex.R

Description

This function is meant to be used in a .Rnw Sweave document to create the LaTeX code input... necessary to place tables in the final document. Arguments in R chunk in the .Rnw file must be results=tex and include=FALSE

Usage

1
inputTex(texName, clearpage = TRUE, multicols = FALSE, numCols = 2)

Arguments

texName

Vector of strings indicating the name of the .tex file that holds the LaTeX code for creating the table

clearpage

Logical: TRUE indicates clearpage will be added to the LaTeX code after all of the input... statements are written

multicols

Logical: TRUE indicates that the tables given in texName should be oriented into multiple columns on the page. This means that the 'begin' statement of all of the tables in texName must be of the format begintablehere and likewise for the 'end' statement. Default is FALSE

numCols

Numeric indicating number of columns the tables should be put into

Details

Meant to be implemented in the compiling of a .Rnw file by Sweave() command.

Value

inputtexName[i].tex will be placed into .tex file created when Sweave is run

Author(s)

University of Wisconsin-Madison Biostatistics and Medical Informatics Department, Scott Hetzel M.S.

See Also

Sweave()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
# Not Run
#
# First calling a R chunck in Sweave language
#    <<tex, results=tex, include=FALSE>>=
#     inputTex(c('Age','Sex','Weight','Height'))
#    @
#
# Must have Age.tex, Sex.tex, Weight.tex and Height.tex in the
# same directory that the .Rnw file is.
#
# Output will look like:
#
# \input{Age.tex}
# \input{Sex.tex}
# \input{Weight.tex}
# \input{Height.tex}
# \clearpage

jbirstler/biostatrpts documentation built on May 7, 2020, 12:10 a.m.