-
Notifications
You must be signed in to change notification settings - Fork 0
/
u.Rmd
51 lines (41 loc) · 799 Bytes
/
u.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
---
date: "`r Sys.Date()`"
author: "Your Name"
title: "officedown template"
always_allow_html: true
output:
officedown::rdocx_document:
mapstyles:
Normal: ['First Paragraph']
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE, fig.cap = TRUE)
library(officedown)
library(officer)
fp <- fp_par(
text.align = "center",
padding.bottom = 20, padding.top = 120,
border.bottom = fp_border())
ft <- fp_text(shading.color='#EFEFEF', bold = TRUE)
hd <- mtcars[,1:3] |> head()
```
## Render with gt
```{r}
hd |>
gt::gt() |> print()
```
## Render with gt (results = asis)
```{r results='asis'}
hd |>
gt::gt() |> print()
```
## Render with gt (results = hold)
```{r results='hold'}
hd |>
gt::gt()
```
## Render with pander
```{r}
hd |>
pander::pander()
```