Skip to content

Commit 5ec195f

Browse files
committed
add a test file for #3085
1 parent 6f4599c commit 5ec195f

File tree

1 file changed

+90
-0
lines changed

1 file changed

+90
-0
lines changed
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
---
2+
title: "#3085 R tests"
3+
format: html
4+
---
5+
6+
### Pipe tables
7+
8+
#### Bad!
9+
10+
| a | a | a |
11+
| - | - | - |
12+
| a | a | a |
13+
14+
#### Bad!
15+
16+
| aaaaaaaaa | aaaa | aaaaaaaaaaa |
17+
| - | - | --- |
18+
| aaaaaaaaaaaaa | aaaaaaaaaaaa | aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa |
19+
20+
#### Good!
21+
22+
| aaaaaaaaa | aaaa | aaaaaaaaaaa |
23+
| - | - | --- |
24+
| aaaaaaaaaaaaa | aaaaaaaaaaaaaaaa | aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa |
25+
26+
### Raw html
27+
28+
#### Bad!
29+
30+
```{=html}
31+
<table>
32+
<thead>
33+
<tr><td>a</td><td>b</td></tr>
34+
</thead>
35+
<tbody>
36+
<tr><td>1</td><td>2</td></tr>
37+
<tr><td>3</td><td>4</td></tr>
38+
</tbody>
39+
</table>
40+
```
41+
42+
43+
### Grid table with caption
44+
45+
#### Good!
46+
47+
: Sample grid table.
48+
49+
+---------------+---------------+--------------------+
50+
| Fruit | Price | Advantages |
51+
+===============+===============+====================+
52+
| Bananas | $1.34 | - built-in wrapper |
53+
| | | - bright color |
54+
+---------------+---------------+--------------------+
55+
| Oranges | $2.10 | - cures scurvy |
56+
| | | - tasty |
57+
+---------------+---------------+--------------------+
58+
59+
### Grid table without caption
60+
61+
#### Good!
62+
63+
+---------------+---------------+--------------------+
64+
| Fruit | Price | Advantages |
65+
+===============+===============+====================+
66+
| Bananas | $1.34 | - built-in wrapper |
67+
| | | - bright color |
68+
+---------------+---------------+--------------------+
69+
| Oranges | $2.10 | - cures scurvy |
70+
| | | - tasty |
71+
+---------------+---------------+--------------------+
72+
73+
74+
## Computational table output
75+
76+
```{r}
77+
#| echo: false
78+
library(flextable)
79+
library(gt)
80+
library(DT)
81+
library(knitr)
82+
```
83+
84+
### Kable
85+
86+
#### Good!
87+
88+
```{r}
89+
exibble |> knitr::kable()
90+
```

0 commit comments

Comments
 (0)