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
1
vote
0 answers

pander markdown errors with descr::CrossTables if table has no row or col %

I am trying to find a way to generate crosstables in rmarkdown that can render to PDF, HTML and word. So far the only solution that seem to work is to generate the markdown tables with pander. However I am having problems with crosstables with no…
Eduardo Bergel
  • 2,685
  • 1
  • 16
  • 21
1
vote
2 answers

Applying a criterion to a single column of a table in pander

I want to apply a criterion according to which cells in a pander table are made bold or not. However I want to apply this criterion to a single column of the table not to other columns. Here is the full markdown document. --- title:…
llewmills
  • 2,959
  • 3
  • 31
  • 58
1
vote
0 answers

Configuring Pandoc output from pander

I'm trying to generate a report with a number of plots (the result of applying the same analysis to a list of data.frames). The pander package makes this pretty easy: myReport <- Pandoc$new("Tyler", "test") myReport$add.paragraph("# First…
Tyler
  • 9,872
  • 2
  • 33
  • 57
1
vote
1 answer

Blank Cells in Pander table

Is there any way to create a pander table in rmarkdown so that the cells with NA (e.g. the table below) appear completely blank? --- title: "Untitled" author: "Llew Mills" date: "24 June 2016" output: pdf_document --- ```{r setup,…
llewmills
  • 2,959
  • 3
  • 31
  • 58
1
vote
0 answers

Add commas to numbers in CrossTable with Pander

I would like to add commas to numbers produced in CrossTable using pander. According to the pander::pander.CrossTable, options can be passed to pandoc.table and there is an option called "big.mark" to add commas. But the following does not…
user2547973
  • 343
  • 2
  • 9
1
vote
0 answers

How to get row names using Pander in r markdown

I am using Pander to get my tables in R markdown, and I would like to add row names to my tables, which are not there by default. here is my script: age.frequency.table <- xtabs(~age, data=iceland) pander(age.frequency.table) Here is a screenshot…
Emily
  • 29
  • 1
  • 7
1
vote
0 answers

Table styling with R Markdown Beamer Presentations (long tables, width issue and linebreaks)

I tried many things before and I know that it is a pain to deal with tables already, but I am still asking if there is an easy way to handle tables in Beamer presentations created by RMarkdown. Here is my MWE containing three different table…
berkorbay
  • 443
  • 7
  • 22
1
vote
0 answers

Inserting blank spaces at the end of a column name in a table using pander

I am trying to find a way of centering a column heading in a pander table using knitr to pdf in rmarkdwon, but keeping the column entries right justified. --- title: "Table Doc" output: pdf_document --- ```{r table, echo = FALSE} table1 <-…
llewmills
  • 2,959
  • 3
  • 31
  • 58
1
vote
1 answer

Aligning and italicising table column headings using Rmarkdown and pander

I am writing a rmarkdown document knitting to pdf with tables taken from portions of lists from the ezANOVA package. The tables are made using the pander package. Toy Rmarkdown file with toy dataset below. --- title: "Table Doc" output:…
llewmills
  • 2,959
  • 3
  • 31
  • 58
1
vote
0 answers

Is it possible to use pander tables in jekyll page with kramdown

I tried to use pander tables in a markdown page that is generated from R-markdown files like Yihui describes in an example page. In my _config.yml I have the markdown type set to markdown: kramdown. I know that some things are different in this…
nnn
  • 4,985
  • 4
  • 24
  • 34
1
vote
1 answer

R pander package: Unable to run CrossTable example in Rmd document

I am unable to compile a Rmd as pdf with the CrossTable example from the "Using pander with knitr" vignette. Here is my code --- title: "Pander CrossTable test" author: "Christiaan Pauw" date: "08 March 2016" output: pdf_document --- ```{r…
Christiaan
  • 115
  • 9
1
vote
1 answer

pander not working in gmailR

I have set up gmailR to share the data frames through emails. I am getting below error. Please help email <- send_message(mime(from="xxxx@yyyy.com", to="xxxx@yyyy.com", subject="Text Email Testing", body =…
Domains Barter
  • 153
  • 1
  • 5
1
vote
0 answers

Reuse the output of pander_return in knitr document

I am working on a package that helps automate exploratory data analysis by creating a knitr file with basic statistics about each column of a dataframe. One issue I've run into is storing the result of a pander_return call in a function and then…
vitallish
  • 312
  • 1
  • 12
1
vote
1 answer

Highlighting mininimum row value in Pander

I am trying to display a dataframe in an RMarkdown document using the Pander package. I would like to highlight the minimum value in each row of values. Here's what I have tried: df <- replicate(4, rnorm(5)) df <- as.data.frame(df) df$min <-…
Kevin Burnham
  • 553
  • 2
  • 13
1
vote
1 answer

Conveniently inserting custom text in table headers generated by pander

I'm generating a simple table in pander. I would like to have a greater control over the text that appears as a header. For example the code below: --- title: "OddFile" author: "Test" date: "November 18, 2015" output: pdf_document --- Amazing…
Konrad
  • 17,740
  • 16
  • 106
  • 167