The function txt_body() add a line break at the end of each element of a
character vector considering them as single lines.
Note that comments will be deleted in the input file.
Usage
read_rmd(file, ..., skip_head = FALSE)
txt_body(...)
Value
The function read_rmd() returns a rmd_doc object.
The function txt_body(), a character vector suitable for the parameter
body in the function write_rmd().
Arguments
file
Character value indicating the path and the name to the Rmd file.
...
Arguments passed by read_rmd() to readLines().
In txt_body() they are character values passed to c().
skip_head
Logical value indicating whether the yaml head should be
skip or not (this argument is not used at the moment).