File tree Expand file tree Collapse file tree 1 file changed +90
-0
lines changed
tests/docs/smoke-all/2023/02/01 Expand file tree Collapse file tree 1 file changed +90
-0
lines changed Original file line number Diff line number Diff line change 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+ ```
You can’t perform that action at this time.
0 commit comments