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

in_pkgdown()

Examples

in_pkgdown()
#> [1] TRUE