I have had a similar problem for integrating the API key. Basically it is a matter of integrating the API key in the URL that R calls.
If this doesn't help you, you need to change the core code (look it up on Github) to allow for an argument calling a key.