To create the R documentation file ( .Rd ), I use the RStudio / Document package with the parameters R 3.0.2, Linux 3.11, devtools 1.5, roxygen2 4.0.1.
goal
I want to describe several function arguments in a documentation file, for example, in this example:
\arguments{ \item{arg1, arg2}{Description} }
Here, the arguments arg1 and arg2 are separated by a space character. This causes the line to break automatically in the HTML version.
Problem
Using the RStudio / Document parameter, a space between the two arguments places the second in the Description part, for example:
will become
\arguments{ \item{arg1,}{arg2 Description} }
Inappropriate decision
The only way I decided to keep both arguments inside the βargumentβ part is not to use space-separated ones, for example:
will become
\arguments{ \item{arg1,arg2}{Description} }
This is not required because with a large number of arguments, the column with the argument uses a lot of space. I tried to avoid space with \ or \\ , and also include all arguments with \code{...} , but none of them worked as desired.
Question
Is there a way to create a conclusion like in my goal ? Maybe some kind of escape character that introduces a space?
Thanks.
Sven