This is occassionally useful when you need different behaviour by pkgdown and regular documentation.

in_pkgdown()

Examples

in_pkgdown()
#> Error in in_pkgdown(): could not find function "in_pkgdown"