testex
testex copied to clipboard
`roxygen2` requests
Just keeping a few notes on changes that would help support this package in roxygen2:
- Duplicate
@examplesare joined with extra empty lines. Especially whentestextags are functionally special@examplestags, this introduces a lot of unintentional whitespace. @examplesIfchanges the output value of the code, meaning that.Last.valueis not what might be otherwise expected by tests.
instead would be preferred if the code that executes awithAutoprint(1 + 2) .Last.value # == list(value = 3, visible = TRUE)@examplesIfstatement returns only the value:if (<condition>) (if (getRversion() >= "3.4") (function(x) \{ x <- as.list(substitute(x))[-1]; invisible(withAutoprint(x, evaluated = TRUE)$value) \}) else force)(\{ # examplesIf} 1 + 2 \dontshow{\}) # examplesIf}