r-lib / pkgdown

Generate static html documentation for an R package

Home Page:https://pkgdown.r-lib.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Better `defer()` support in examples

lionel- opened this issue · comments

Since withr works as expected in examples in R CMD check, it's probably worth making defer() work in pkgdown too (run at the end of examples).

As @gaborcsardi pointed out, only conditional examples are run within source().