R Under development (unstable) (2026-02-18 r89435 ucrt) -- "Unsuffered Consequences" Copyright (C) 2026 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > ### Test code for logicals bug (number 1911) > ### David Scott, , 2012-08-10 > ### Example of problem with logical > library(xtable) > mydf <- data.frame(x = c(1,2), y = c(TRUE,FALSE)) > xtable(mydf) % latex table generated in R 4.6.0 by xtable 1.8-8 package % Sun Feb 22 11:26:24 2026 \begin{table}[ht] \centering \begin{tabular}{rrl} \hline & x & y \\ \hline 1 & 1.00 & TRUE \\ 2 & 2.00 & FALSE \\ \hline \end{tabular} \end{table} > > ### 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} > > > proc.time() user system elapsed 0.21 0.06 0.26