update analysis_r.r to run from git repo clone directly