R example added to readme