Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to store google api key in .Renviron #253

Closed
jzadra opened this issue Jul 6, 2022 · 1 comment
Closed

How to store google api key in .Renviron #253

jzadra opened this issue Jul 6, 2022 · 1 comment

Comments

@jzadra
Copy link

jzadra commented Jul 6, 2022

Is it possible to store the API key in .Renviron? If so, what is the variable to set?

@dcooley
Copy link
Collaborator

dcooley commented Jul 6, 2022

Is it possible to store the API key in .Renviron?

of course - you can store waht you like here. For example: Sys.setenv("my_api_key" = "xxxxxxx")

If so, waht is the variable to set?

You can set whatever you like. But googleway doesn't look inside the environment for a key, you still have to set it yourself in your script:

googleway::set_key(Sys.getenv("my_api_key"))

@dcooley dcooley closed this as completed Jul 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants