-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
41 lines (30 loc) · 989 Bytes
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---
output:
github_document:
html_preview: false
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
<!-- badges: start -->
[![Travis build status](https://travis-ci.org/JohnCoene/gkg.svg?branch=master)](https://travis-ci.org/JohnCoene/gkg)
<!-- badges: end -->
# gkg
Call the Google Knowledge Graph API
## Installation
You can install the package from Github with:
``` r
# install.packages("remotes")
remotes::install_github("JohnCoene/gkg")
```
## Example
Only contains a single function: `gkg`, see man for details. You will need credentials, which you can get for free, see [the prerequisites](https://developers.google.com/knowledge-graph/prereqs). By default, `gkg` looks for the api key as `GKG_API_KEY` environment variable.
```{r}
gkg("R Programming", languages = "en", types = "Person")
```