You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Users won’t actually see the if() { … } machinery when they are reading your documentation from within R or on a pkgdown website. Users only see realistic code.
The example code renders fully in pkgdown.
The example code runs when it should and does not run when it should not.
This doesn’t run afoul of CRAN’s prohibition of putting all your example code inside \dontrun{}.
The text was updated successfully, but these errors were encountered:
https://r-pkgs.org/man.html#sec-man-examples-dependencies-conditional-execution
Advantages are
The text was updated successfully, but these errors were encountered: