0

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 the document, like this:

what I have

I would like to have a not so wide table, something like this:

what I want

Is it possible?

Thank you,

Bruno

brunosm
  • 116
  • 1
  • 12

1 Answers1

0

Using daroczig tip, I solve it by using a .css file with the instruction:

.table{
width: 1px;
white-space: nowrap;
}

Thanks daroczig

brunosm
  • 116
  • 1
  • 12