Directories listed in the global option pomp.examples (which can be changed using options()) are searched for file named <example>.R.
If found, this file will be sourced in a temporary environment.
Additional arguments to pompExample define variables within this environment and will therefore be available when the code in <example>.R is sourced.
The codes that construct these pomp objects can be found in the examples directory in the installed package.
Do system.file("examples",package="pomp")) to find this directory.