knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
gtR
is a tool for accessing UK Research and Innovation's (UKRI) Gateway to Research (GtR) API. It is designed to reduce repetitive code when calling the API via R. This also helps eliminates barriers to users who aren't familiar with APIs more generally.
You can install the package from GitHub using the following code:
``` {r install, eval = F } remotes::install_github("shanej90/gtR")
## Example This is a basic example which shows you how to solve a common problem (results aren't shown due to long character strings in data): ```r library(gtR) # get list of projects data <- get_resources( resource = "project", size = 10, page_num = 1 )
Although the intention to expand this package's functionality over time, if you can't wait feel free to fork and add functionality. In this case you may find UKRI's API documentation useful.
Gate icon made from Icon Fonts. Licensed by CC BY 3.0.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.