# consider the following example textab object:
tt = TexRow(c("hello", "world")) + TexRow(c(1,2))
# define the positions for each column:
pos = c("l","c")
# choose an output path:
op = tempdir()
# Save a simple .tex document containing this table:
TexSave(tab = tt, positions = pos, filename = "example1", output_path = op)
# Save the .tex document as stand-alone, which includes LaTeX headers and packages:
TexSave(tab = tt, positions = pos, filename = "example2", output_path = op, stand_alone = TRUE)
Run the code above in your browser using DataLab