Closed ghost closed 4 years ago
Firstly, if you have overloaded the knit_print
for a specific class, you don't have to specify the render
argument in the chunks. I.e. with
knit_print.data.frame <- lemon_print
you no longer have to specify render=lemon_print
when the resulting object is of that class.
Secondly, you can pass options to kable with with the kable.opts
argument:
```{r, render=lemon_print,kable.opts=list(digits = 10)}
data.frame or data.table or ...
```
Hope this helps!
Thank you it works perfectly :D
Hello, I have a data.table with one column containing values of the order of 10e-10, when printing with lemon print the values are rounded to 0. I would need the actual values to be displayed. Is there a way to achieve that without touching the data.table? This how I do print
and in my chunk
{r, render=lemon_print}
I know I can dokable(df, digits = 10)
but I was curious to know how to use the "digits" argument. Thank you