lintr
lintr copied to clipboard
[new lint] Empty first line in roxy examples
Only after https://github.com/r-lib/lintr/issues/265
Empty lines following #' @examples
roxygen tag are actually being rendered out. This is oftentimes confused with code-formatting within roxygen when blank lines got ignored.
Anti pattern (file foo.R
):
#' @examples
#'
#' foo()
Which results into the following (file foo.Rd
):
\examples{
foo()
Whereas it should be:
#' @examples
#' foo()