/usr/share/doc/r-cran-xtable/tests/test.xtable.data.frame.R is in r-cran-xtable 1:1.8-2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ### Test code for logicals bug (number 1911)
### David Scott, <d.scott@auckland.ac.nz>, 2012-08-10
### Example of problem with logical
library(xtable)
mydf <- data.frame(x = c(1,2), y = c(TRUE,FALSE))
xtable(mydf)
### Output should be
## % latex table generated in R 2.15.0 by xtable 1.7-0 package
## % Fri Aug 10 23:16:30 2012
## \begin{table}[ht]
## \begin{center}
## \begin{tabular}{rrl}
## \hline
## & x & y \\
## \hline
## 1 & 1.00 & TRUE \\
## 2 & 2.00 & FALSE \\
## \hline
## \end{tabular}
## \end{center}
## \end{table}
|