[R] How to remove latex message from a resulting rmarkdown pdf?

Uwe Ligges ligges at statistik.tu-dortmund.de
Sun Aug 3 09:44:05 CEST 2014



On 03.08.2014 02:58, Eduardo M. A. M.Mendes wrote:
> Hello
>
> I am using rmarkdown to write the partial results of my research project.  Both html and pdf files are used. In the resulting pdf xtable writes the following msg:
>
> % latex table generated in R 3.1.1 by xtable 1.7-3 package % Sat Aug 2 21:42:16 2014
>
>
> How can I remove such a msg?

Read ?print.xtable, there is some argument (comment?) to switch it off.


Best,
Uwe Ligges


> Many thanks
>
> Ed
>
>
> Below you will find the info on my system and a rmakrdown example to reproduce the msg.
>
> R version 3.1.1 (2014-07-10)
> Platform: x86_64-apple-darwin13.1.0 (64-bit)
>
> locale:
> [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
>
>
> loaded via a namespace (and not attached):
>   [1] cluster_1.15.2
>   [2] colorspace_1.2-4
>   [3] digest_0.6.4
>   [4] evaluate_0.5.5
>   [5] formatR_0.10
>   [6] gtable_0.1.2
>   [7] htmltools_0.2.4
>   [8] knitr_1.6
>   [9] labeling_0.2
> [10] latticeExtra_0.6-26
> [11] MASS_7.3-33
> [12] munsell_0.4.2
> [13] plyr_1.8.1
> [14] proto_0.3-10
> [15] RColorBrewer_1.0-5
> [16] Rcpp_0.11.2
> [17] reshape2_1.4
> [18] rmarkdown_0.2.53
> [19] scales_0.2.4
> [20] stringr_0.6.2
> [21] tools_3.1.1
> [22] yaml_2.1.13
>
> RStudio - Version 0.98.987
>
> and ExampleA.Rmd
>
> ---
> title: "Example - Latex message on the resulting pdf"
> output: pdf_document
> ---
>
> ```{r r princ, echo=FALSE, warning=FALSE, results='asis', message=FALSE}
> library(xtable,quietly = TRUE,warn.conflicts = FALSE, verbose = FALSE)
> exampleAinfo=data.frame(matrix(runif(84),21,4))
> names(exampleAinfo)=c("Column 1","Column 2","Column 3","Column 4")
> ```
>
>
> # Example
>
> ```{r exampleA, results='asis', echo=FALSE, tidy=FALSE}
> exampleAinfo.table <- xtable(exampleAinfo, caption="Example A", digits=6)
> print(exampleAinfo.table, include.rownames = FALSE, floating=FALSE)
> ```
>
>
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



More information about the R-help mailing list