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
1 answer

RMarkdown HTML document isn't showing Tmap widget while printing with for cycle

Not able to make RMarkdown html output showing interective Tmap views (tmap_mode set to "view") while printed inside for cycle. Any tips? This works properly: ```{r interactive maps, echo=FALSE, message=FALSE, warning=FALSE,…
emaoca
  • 47
  • 3
0
votes
2 answers

Cross referencing pander-table in rmarkdown

Despite the huge amount of questions on this subject and despite having read the manual, including the last paragraph, I can't get my head around it. I found a solution for pdf-output, but would like it to work for html-output too (ideally an…
Dries
  • 470
  • 4
  • 24
0
votes
1 answer

emphasize.strong.rows (pander) fails

The "emphasize.strong.rows" function fails when there are no rows to emphasize. Example: #this works iris iris_b <- iris[1:3, ] emphasize.strong.rows (which(iris_b$Sepal.Width > 3)) pandoc.table(iris_b) #this fails to work iris iris_b <- iris[1:3,…
Banji
  • 28
  • 4
0
votes
1 answer

plots after dynamic sections using R Markdown pander, knitr and pandoc

I use this rmd: --- title: "Some Title" author: "Some Author" date: "`r format(Sys.time(), '%d-%m-%Y')`" --- ## A function that generates sections ```{r setup, include = FALSE} library(pander) create_section <- function() { # Inserts "##…
cs0815
  • 16,751
  • 45
  • 136
  • 299
0
votes
0 answers

Pander table in R

I want to create a pander table in R out of a summary of my dataset. I always get four variables on one line, then another four and the last variable is all alone on the last line. Now I would like to have only three variables per row. How can I…
0
votes
0 answers

Smaller font for some paragraphs with r markdown knitr to word docx

I am using r-markdown, knitr, and pandoc to generate MS Word reports in RStudio. My tables require a data source line underneath each. The font size of this text needs to be 2 points smaller than the rest of the document. Is there a way to…
user2547973
  • 343
  • 2
  • 9
0
votes
2 answers

Single space pander table

How can I make pander print as single space, not double. Curently, if I do: pander(mtcars[1:5, 1:5]) I get: --------------------------------------------------------   mpg cyl disp hp drat -----------------------…
Tyler Rinker
  • 108,132
  • 65
  • 322
  • 519
0
votes
0 answers

Making pretty tables with glmmPQL (MASS) and stargazer/texreg/pander

I generated some GLMMs with glmmpql(Guassian log link) from the MASS package, with the output being: PQL_meth_sLL<- glmmPQL(sLL~Temp_fac*State, ~1|Locality/Family, family=gaussian(link="log"), data=adult, verbose=FALSE) > class(PQL_meth_sLL) >> [1]…
Virchu
  • 1
  • 2
0
votes
0 answers

Creating different indent for row names in pander

for the purpose of exporting a results table into word using R markdown, I found that pander has fulfilled almost all my needs. However, after a lot of searching I couldn't find a way to indent some of the row names in my table (the equivalent to…
NoamMm
  • 21
  • 1
  • 3
0
votes
1 answer

R - Pander table width on html

I'm having some problems to control the width of a table created by pander library in R markdown script. ```{r echo = FALSE} library(pander) pander(head(iris), style = 'rmarkdown') ``` When I knit the document to a html, the table has the widht of…
brunosm
  • 116
  • 1
  • 12
0
votes
0 answers

Change the font family in Rchunk/ pandoc.table in R markdown

I am trying to get the font in my Rmarkdown document to match that of the rest of my report. Essentially this creates the legend for my maps. The entire report is Rockwell, but I can not figure out how to change the font in the output of the…
Tj Laroue
  • 23
  • 7
0
votes
0 answers

Reduce table overall size with pandoc.table

I am rendering a table in RMarkdown (ioslides) using pander and pandoc.table but only 6 out of 10 rows are showing. How do I reduce the table size to see all rows? employee <- c('A','B','C', 'D', 'E', 'F', 'H', 'K','L', 'M') salary <- c(1, 2,…
LMHull
  • 77
  • 8
0
votes
0 answers

Display markdown table as html table in Shiny

I saw this app https://rich.shinyapps.io/regression/ and I wanted to do something similar displaying the regression output as html. I divided my app in three parts as below. server.R has no "engine" problems and the regression result is correct and…
pachadotdev
  • 3,345
  • 6
  • 33
  • 60
0
votes
0 answers

Pander error with lrm function in rms package

I am trying to use pander to render a model created by the lrm function in the rms package, but I get an error lg<-lrm(Y~v1+v2+v3+v4+v5+v6, data=temp) pander(lg) The error that I get is: Error: 'reVector' is not an exported object from…
user2547973
  • 343
  • 2
  • 9
0
votes
1 answer

how to wrap the caption in r pander function when knitting rmarkdown pdf

--- title: '1' author: '1' date: "March 16, 2017" output: pdf_document: default --- ```{r cars} library(pander) pander(mtcars, split.cells = 5, split.table = Inf, caption = "A long long long long long long long long long long …
Bin
  • 517
  • 1
  • 4
  • 15