I used the minimal flipbookr template and like to illustrate some text cleaning steps line by line with code next to it. This is my code chunk:
library(tidyverse)
library(tidytext)
library(stringr)
library(wikifacts)
R_EN <- wiki_define('R (programming language)')
R_EN #BREAK
R_EN %>%
## Remove digits
str_remove_all("[:digit:]") %>% #BREAK
## Remove punctuation
str_remove_all("[[:punct:]]") %>% #BREAK
## Make everything lowercase
str_to_lower() %>% #BREAK
## Remove any trailing whitespace around the text
str_trim("both") %>% #BREAK
## Remove newline character
str_replace_all("[\r\n]" , " ") #BREAK
Only the first few words are shown on the right (compiled markdown). How can I make all (or at least more) lines of a long character appear?
Like they do in the console:


how about this code:
This gives the text wrapped as shown in the below snapshot:
And
Please let me know if this helps you...