artemklevtsov / RGA

A Google Analytics API client for R
http://cran.r-project.org/package=RGA
32 stars 13 forks source link

Set default for token argument in functions? #28

Open mattpolicastro opened 8 years ago

mattpolicastro commented 8 years ago

New to using the package and a finicky question:

RStudio flags most RGA functions with "argument 'token' is missing, with no default" when authorisation is done with environment variables and no explicit token has been set. This is fairly irrelevant, but is there a reason not to set a default argument of NULL, or something similar? It's a small ergonomics and preference question, but I'd love to hear folks' thoughts.

artemklevtsov commented 8 years ago

@mattpolicastro: can you provide pull request?

mattpolicastro commented 8 years ago

Happily! Just thought I'd ask permission before making changes. I'll start looking into implementation.