我能够使用 R markdown 生成具有简单表格的 Word 文档报告,但无法生成带有网格的表格的报告。
我试图创建一个可重现的代码。
---
title: "Unable to create table having grids"
output: word_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
## R Markdown simple table
Tables Are Cool
------------- ----------- -----------
col 3 is right-aligned $1600
col 2 is centered $12
zebra stripes are neat $1"
## Table Does Not have grids in it.
+--------------+---------------+---------+
|Tables | Are | Cool |
+==============+===============+=========+
|col 3 is | right-aligned | $1600 |
+--------------+---------------+---------+
|col 2 is | centered | $12 |
+--------------+---------------+---------+