first compiling of RunStudy.R