refine roxygen example execution logic