Authenticate with Google Language API services
Details
This function authenticates with Google Cloud's language APIs. By default, it uses the JSON file specified
in json_file
. Alternatively, you can set the file path in the environment variable GL_AUTH
to
auto-authenticate when loading the package.
Examples
if (FALSE) { # \dontrun{
library(googleLanguageR)
gl_auth("path/to/json_file.json")
} # }
if (FALSE) { # \dontrun{
library(googleLanguageR)
gl_auto_auth()
gl_auto_auth(environment_var = "GAR_AUTH_FILE")
} # }