Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

emphasize.rownames=FALSE does not work with split tables #133

Closed
alexploner opened this issue Nov 21, 2014 · 0 comments
Closed

emphasize.rownames=FALSE does not work with split tables #133

alexploner opened this issue Nov 21, 2014 · 0 comments

Comments

@alexploner
Copy link

Using pander 0.5.2, I can't seem to be able to switch off bold row names:

require(pander)
pander(mtcars[1:3, ], emphasize.rownames=FALSE)
## Output minus some blank lines
## --------------------------------------------------------
##                 mpg   cyl   disp   hp   drat   wt  
## ------------------- ----- ----- ------ ---- ------ -----
##    **Mazda RX4**     21     6    160   110   3.9   2.62 
##  **Mazda RX4 Wag**   21     6    160   110   3.9   2.875
##   **Datsun 710**    22.8    4    108    93   3.85  2.32 
## --------------------------------------------------------
## Table: Table continues below
## --------------------------------------------------
##                 qsec   vs   am   gear   carb 
##  ------------------- ------ ---- ---- ------ ------
##    **Mazda RX4**    16.46   0    1     4      4   
## **Mazda RX4 Wag**  17.02   0    1     4      4   
##  **Datsun 710**    18.61   1    1     4      1   
## --------------------------------------------------

If I cut down on the columns, so the table gets shorter and does not split, it works:

pander(mtcars[1:3, 1:3], emphasize.rownames=FALSE)
## ----------------------------------
##             mpg   cyl   disp 
## --------------- ----- ----- ------
##    Mazda RX4     21     6    160  
##  Mazda RX4 Wag   21     6    160  
##   Datsun 710    22.8    4    108  
## ----------------------------------

and the same with setting split.table large enough:

pander(mtcars[1:3, ], emphasize.rownames=FALSE, split.table=200)
## -----------------------------------------------------------------------------------
##             mpg   cyl   disp   hp   drat   wt    qsec   vs   am   gear   carb 
## --------------- ----- ----- ------ ---- ------ ----- ------ ---- ---- ------ ------
##    Mazda RX4     21     6    160   110   3.9   2.62  16.46   0    1     4      4   
##  Mazda RX4 Wag   21     6    160   110   3.9   2.875 17.02   0    1     4      4   
##   Datsun 710    22.8    4    108    93   3.85  2.32  18.61   1    1     4      1   
## -----------------------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant