Closed giocomai closed 1 year ago
@giocomai thanks for the report with the two examples. @IndrajeetPatil to me, this looks like a recently introduced regression, since with release 1.7.0, I don't see that happening. IIRC, we changed empty line handling in roxygen code examples recently somehow...
git bisect
yields: cee9d524950feb9967309b126764aef0ebc7264f is the offending commit.
Having an empty line in the
@examples
section throws an uninformative error.I understand that such empty lines should not exist in a package, but running
styler
regularly while actively working on a function led to this issue, which took some time to troubleshoot.Either ignoring (as there are no styling issues involved) or throwing an informative error would be preferable.
Created on 2023-02-05 with reprex v2.0.2
Similar result happens when the empty line is inside a
\dontrun
: