Fix some problems with R resource
Merge pull request #2 from MBCMadrid/ervitis

Fix some problems with R resource