Nedinator
Nedinator

Reputation: 1090

Increase columns in Pander

So I have a 6 column dataframe I want to display in an email. Everything is set up correctly but it displays only 5 columns and the 6th one down below. Is there a fix?

I am using pander and sendMailR in this code.

Thanks,

NC

Upvotes: 2

Views: 382

Answers (1)

daroczig
daroczig

Reputation: 28632

Sure, the general options are your best friend when it comes to pander:

> panderOptions('table.split.table', Inf)
> pander(head(iris))

-------------------------------------------------------------------
 Sepal.Length   Sepal.Width   Petal.Length   Petal.Width   Species 
-------------- ------------- -------------- ------------- ---------
     5.1            3.5           1.4            0.2       setosa  

     4.9             3            1.4            0.2       setosa  

     4.7            3.2           1.3            0.2       setosa  

     4.6            3.1           1.5            0.2       setosa  

      5             3.6           1.4            0.2       setosa  

     5.4            3.9           1.7            0.4       setosa  
-------------------------------------------------------------------

Probably I'll make this as the default value in the next release of pander not to confuse first time users.

Upvotes: 4

Related Questions