Initial checkin of R SDK