“not run” encloses code that shouldn’t be executed in the example function (e.g. time-consuming code parts, user-interaction, …).
see e.g. ?example:
As detailed in the manual Writing R Extensions, the author of
the help page can markup parts of the examples for two exception
rules
-
‘dontrun’ encloses code that should not be run.
-
‘dontshow’ encloses code that is invisible on help pages, but will
be run both by the package checking tools, and the
‘example()’ function. This was previously ‘testonly’, and
that form is still accepted.