adding r support
Merge pull request #230 from yonkeltron/master

adding r support