Hao Zhu | 248bbef | 2018-04-02 18:25:14 -0400 | [diff] [blame] | 1 | % Generated by roxygen2: do not edit by hand |
| 2 | % Please edit documentation in R/linebreak.R |
| 3 | \name{linebreak} |
| 4 | \alias{linebreak} |
| 5 | \title{Make linebreak in LaTeX Table cells} |
| 6 | \usage{ |
Hao Zhu | 7ba755d | 2018-09-15 21:21:43 -0400 | [diff] [blame] | 7 | linebreak(x, align = c("l", "c", "r"), double_escape = F, |
| 8 | linebreaker = "\\n") |
Hao Zhu | 248bbef | 2018-04-02 18:25:14 -0400 | [diff] [blame] | 9 | } |
Hao Zhu | 5e4dd50 | 2018-04-05 12:01:58 -0400 | [diff] [blame] | 10 | \arguments{ |
| 11 | \item{x}{A character vector} |
| 12 | |
| 13 | \item{align}{Choose from "l", "c" or "r"} |
| 14 | |
| 15 | \item{double_escape}{Whether special character should be double escaped. |
| 16 | Default is FALSE.} |
Hao Zhu | 7ba755d | 2018-09-15 21:21:43 -0400 | [diff] [blame] | 17 | |
| 18 | \item{linebreaker}{Symbol for linebreaks to replace. Default is \code{\n}.} |
Hao Zhu | 5e4dd50 | 2018-04-05 12:01:58 -0400 | [diff] [blame] | 19 | } |
Hao Zhu | 248bbef | 2018-04-02 18:25:14 -0400 | [diff] [blame] | 20 | \description{ |
Hao Zhu | 5e4dd50 | 2018-04-05 12:01:58 -0400 | [diff] [blame] | 21 | This function generate LaTeX code of \code{makecell} so that users |
| 22 | can have linebreaks in their table |
Hao Zhu | 248bbef | 2018-04-02 18:25:14 -0400 | [diff] [blame] | 23 | } |