Questions tagged [pander]

pander is a Pandoc writer in R.

Pander can convert various objects to markdown with various helpers functions and a generic S3 method, from which the most often used function (pandoc.table) returns data.frame or table like R objects in grid, simple, multi-line or pipe table syntax.

Beside the pander method the package also contains some helpers to act like brew˙with a robust cache and other added features (e.g. capturing and auto-styling images) and to transform literate reports to HTML/pdf/odt/docx directly with the help of Pandoc.

Questions tagged should also be tagged

151 questions
0
votes
0 answers

Create pdf-format table that can wrap the text well in rmarkdown

I used the rmarkdown to create a pdf file, where some tables are included in the output. The tables are created by using pander function. As you see, the output does not wrap the text well, so the output is quite dirty. Suppose the code is as…
Bin
  • 517
  • 1
  • 4
  • 15
0
votes
0 answers

How to apply .table-striped attribute to pander table in rmarkdown

I would like to figure out how to apply the striped attribute to my pander tables in rmarkdown. I can't really find it at the online help of the Pander library, and panderOptions doesn't list it either (or I can't find it), neither can I find it at…
TomGeo
  • 1,213
  • 2
  • 12
  • 24
0
votes
1 answer

Width of Pander table in Rmarkdown

I have been trying to use a two-column layout in an Rmarkdown document which include a table rendered using Pander. I would like the table to render to the width of the column but all the options that I have tried do not seem to work. Here is a…
rjss
  • 935
  • 10
  • 23
0
votes
0 answers

Rmarkdown and Pander to control column width

I have a simple problem of trying to produce an HTML file with rmarkdown. I want to include a table which has one column which has a long list of genes. All I want to do is set the column width of each column, both columns will require wrapping. I…
George
  • 903
  • 8
  • 22
0
votes
0 answers

pander.lm tables within slidify

I'm having difficulty in getting pander tables to render in a slidify document (specifically with a call to pander.lm). For example, the below works ```{r panderWorks, results = "asis"} id <- rep(1:3, each = 2) condition <- rep(c("A", "B"), 3) score…
Daniel Anderson
  • 2,394
  • 13
  • 26
0
votes
1 answer

How to order cells of a table using Pander

I am using the pander function to make my tables in R markdown, but having some troubles with cells being ordered in an illogical way. here is a screenshot of my r Markdown As you can see, it is ordering based on the first digit as opposed to the…
Emily
  • 29
  • 1
  • 7
0
votes
1 answer

Remove numbering of subtables

I´m using pander to split a wide table (too many columns) into many tables. pander(df, table.split.table=80,style='rmarkdown',table.emphasize.rownames,caption="caption") I´ve read that a good way to do it is to use the following latex command that…
david
  • 805
  • 1
  • 9
  • 21
0
votes
1 answer

group_by prevents correct formatting with pandoc

also posted as an issue on github After using group_by, cannot output table with pandoc correctly with the digits= or round= parameters. Take the group_by out of the chain and pandoc displays the table just fine. Add the group_by in and the…
Clay
  • 2,584
  • 1
  • 28
  • 63
0
votes
1 answer

R: knitr: pander: aligning caption to table

I'm trying to center align a caption to a pandoc table in an Rmarkdown file (outputting to PDF). The table is page centered and I'd like the caption to be similarly centered. I can't seem to find an option in pander/pandoc.table which lets me do…
Richard
  • 95
  • 2
  • 11
0
votes
0 answers

R: Pander does not correctly number summary tables from regression output

I am using pander to print regression output. However, it is automatically (incorrectly) labeling the tables. I have tried to use setcaption to override this habit, but it simply puts the caption to the right of the automated table number. Any…
Parseltongue
  • 11,157
  • 30
  • 95
  • 160
0
votes
1 answer

pander $add function not working

I was able to use pander successfully this morning on one computer, but now I am trying to do it on my own computer, and I am having some weird issues. Here is my very elementary R Pander…
Carl
  • 5,569
  • 6
  • 39
  • 74
0
votes
0 answers

How do I add an existing image when using pander's live report generation?

I am sadly using Windows 7, which could be the problem... I want to add a existing image file to a pander report, using live report generation on the Windows platform, outputting to docx: library(pander) setwd("T:/R/Temp") #this contains the…
Jerubaal
  • 65
  • 1
  • 7
0
votes
1 answer

How do I specify the output file name when using pander's live report generation?

I can create a report object, but when I export() it, there is a generic file name containing a random number. I want to be able to specify the file name. for (report in c("file1", "file2", "file3")) { myReport <-…
Jerubaal
  • 65
  • 1
  • 7
0
votes
1 answer

pander generic function ignores arguments

If I'm not wrong, there are two ways to create markdown tables with pander package: either use the pandoc.table() function or the generic function pander(). However with pander() function, it seems that you cannot use the arguments from…
Gilles San Martin
  • 4,224
  • 1
  • 18
  • 31
-1
votes
1 answer

Kable and pandoc.table takes only the first six rows

I'm trying to build a table either using pandoc.table or kable and have problems getting them to print all 10 rows in my table, atm they both only prints the first six. While I moved to write the table manually, which works, it would be nice to know…
ErrantBard
  • 1,421
  • 1
  • 21
  • 40
1 2 3
10
11