powered by
Authenticate with Google language API services
gl_auth(json_file)gl_auto_auth(...)
gl_auto_auth(...)
Authentication json file you have downloaded from your Google Project
additional argument to pass to gar_attach_auto_auth.
gar_attach_auto_auth
The best way to authenticate is to use an environment argument pointing at your authentication file.
Set the file location of your download Google Project JSON file in a GL_AUTH argument
GL_AUTH
Then, when you load the library you should auto-authenticate
However, you can authenticate directly using this function pointing at your JSON auth file.
if (FALSE) { library(googleLanguageR) gl_auth("location_of_json_file.json") } if (FALSE) { library(googleLanguageR) gl_auto_auth() gl_auto_auth(environment_var = "GAR_AUTH_FILE") }
Run the code above in your browser using DataLab