Draft of R analysis source file