Roxygen `@example` comparable to Python doctest?

Is the @example in roxygen equivalent to a doctest in Python?

Is it intended to be used in the same way and what are potential differences?