---
title: Reversible R Markdown Document
subtitle: Your subtitle
author: Your Name
date: Created `r Sys.Date()`
output:
redoc::redoc:
highlight_outputs: TRUE
margins: 1
line_numbers: FALSE
---
---
title: Reversible R Markdown Document
subtitle: Your subtitle
author: Your Name
date: Created `r Sys.Date()`
output:
redoc::redoc:
highlight_outputs: yes
margins: 1
line_numbers: no
---
R code chunk:
test1 <- "text1\ntext1"
test2 <- "text2\n\ntext2"
Inline:
`r test1`
text2
text2
text3
text3
The inline R code is removed when it contains two \n instances, regardless of whether it was generated in a code chunk or inline.
Session Info
```r
─ Session info ─────────────────────────
setting value
version R version 3.5.3 (2019-03-11)
os macOS Mojave 10.14.6
system x86_64, darwin15.6.0
ui RStudio
language (EN)
collate en_AU.UTF-8
ctype en_AU.UTF-8
tz Australia/Sydney
date 2020-03-27
```
Pandoc version (get with rmarkdown::pandoc_version): 2.3.1
RStudio version (if applicable): 1.3.300
reprex.Rmd
YAML:
R code chunk:
Inline:
Output
reprex.docx
Dedoc
YAML:
R code chunk:
Inline:
The inline R code is removed when it contains two
\n
instances, regardless of whether it was generated in a code chunk or inline.Session Info
```r ─ Session info ───────────────────────── setting value version R version 3.5.3 (2019-03-11) os macOS Mojave 10.14.6 system x86_64, darwin15.6.0 ui RStudio language (EN) collate en_AU.UTF-8 ctype en_AU.UTF-8 tz Australia/Sydney date 2020-03-27 ``` Pandoc version (get with rmarkdown::pandoc_version): 2.3.1 RStudio version (if applicable): 1.3.300