I'm wondering if it's possible to insert newlines inside code blocks in roxygen2 when documenting a function?
If I have something inside \code{}
, roxygen2 collapses all newlines into single spaces by default. I tried inserting \cr
inside to enforce a line break, and I get the desired behaviour, but then I get a WARNING when I "R CMD CHECK". Is there a way to do this?
Example:
#' \code{
#' multiple
#' lines
#' }