Learn R Programming

googleLanguageR (version 0.2.0)

gl_auth: Authenticate with Google language API services

Description

Authenticate with Google language API services

Usage

gl_auth(json_file)

Arguments

json_file

Authentication json file you have downloaded from your Google Project

Details

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

Then, when you load the library you should auto-authenticate

However, you can authenticate directly using this function pointing at your JSON auth file.

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
library(googleLanguageR)
gl_auth("location_of_json_file.json")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab