-
Notifications
You must be signed in to change notification settings - Fork 237
Closed
Description
When using @examplesIf I sometimes have conditions that are longer than can naturally fit on one line. It looks like @examplesIf currently takes only the first line and then disregards the rest of the lines, which leads to a malformed condition.
A (toy) example is:
#' @examplesIf {
#' requireNamespace("dplyr", quietly = TRUE) &&
#' requireNamespace("duckdb", quietly = TRUE) &&
#' packageVersion("duckdb") > "0.2.7"
#' }
Which errors with Warning: [{file path}] @examplesIf failed to parse condition of @examplesIf
Would supporting multi-line @examplesIf conditions be something useful? I'm happy to look into this and submit a PR if it is.
MichaelChirico
Metadata
Metadata
Assignees
Labels
No labels