knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
Call the Google Knowledge Graph API
You can install the package from Github with:
# install.packages("remotes") remotes::install_github("JohnCoene/gkg")
Only contains a single function: gkg
, see man for details. You will need credentials, which you can get for free, see the prerequisites. By default, gkg
looks for the api key as GKG_API_KEY
environment variable.
gkg("R Programming", languages = "en", types = "Person")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.