Implemented R dependency installation. close #7