Refactor exampleRun.R