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 | 9410a27 | 2020-08-03 01:11:47 -0400 | [diff] [blame] | 7 | linebreak(x, align = c("l", "c", "r"), double_escape = F, linebreaker = "\\n") |
Hao Zhu | 248bbef | 2018-04-02 18:25:14 -0400 | [diff] [blame] | 8 | } |
Hao Zhu | 5e4dd50 | 2018-04-05 12:01:58 -0400 | [diff] [blame] | 9 | \arguments{ |
| 10 | \item{x}{A character vector} |
| 11 | |
| 12 | \item{align}{Choose from "l", "c" or "r"} |
| 13 | |
| 14 | \item{double_escape}{Whether special character should be double escaped. |
| 15 | Default is FALSE.} |
Hao Zhu | 7ba755d | 2018-09-15 21:21:43 -0400 | [diff] [blame] | 16 | |
Hao Zhu | 9410a27 | 2020-08-03 01:11:47 -0400 | [diff] [blame] | 17 | \item{linebreaker}{Symbol for linebreaks to replace. Default is \verb{\\\\n}.} |
Hao Zhu | 5e4dd50 | 2018-04-05 12:01:58 -0400 | [diff] [blame] | 18 | } |
Hao Zhu | 248bbef | 2018-04-02 18:25:14 -0400 | [diff] [blame] | 19 | \description{ |
Hao Zhu | 5e4dd50 | 2018-04-05 12:01:58 -0400 | [diff] [blame] | 20 | This function generate LaTeX code of \code{makecell} so that users |
| 21 | can have linebreaks in their table |
Hao Zhu | 248bbef | 2018-04-02 18:25:14 -0400 | [diff] [blame] | 22 | } |