Fix issue with R from outdated package

This will resolve issue #2.