Repository navigation
Expand file tree
/
Copy pathREADME.Rmd
More file actions
80 lines (54 loc) · 3.63 KB
/
Copy pathREADME.Rmd
File metadata and controls
80 lines (54 loc) · 3.63 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
---
output: github_document
---
<!-- 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/"
)
```
# beekeeper <a href="https://beekeeper.api2r.org"><img src="man/figures/logo.svg" align="right" height="120" /></a>
<!-- badges: start -->
[](https://lifecycle.r-lib.org/articles/stages.html#experimental)
[](https://app.codecov.io/gh/api2r/beekeeper?branch=main)
[](https://github.com/api2r/beekeeper/actions/workflows/R-CMD-check.yaml)
<!-- badges: end -->
Use beekeeper to create and maintain R packages that wrap APIs.
The generated packages follow best practices, including documentation and testing.
This package focuses on APIs that follow the [OpenAPI Specification (OAS)](https://spec.openapis.org/oas/v3.1.0).
Currently versions 3.0 and 3.1 are supported, with support for swagger 2.0 to come.
The APIs must have an API document in yaml format.
The package skeletons generated by beekeeper implement best practices to streamline package development.
::: .pkgdown-devel
This package is under active development.
See [R Consortium ISC Grant Milestones](https://beekeeper.api2r.org/dev/articles/milestones.html) for details about the development process.
:::
## Installation
Install the latest release from [GitHub](https://github.com/):
```{r, eval = FALSE}
# install.packages("pak")
pak::pak("api2r/beekeeper@*release")
```
::: .pkgdown-devel
Install the development version of beekeeper from [GitHub](https://github.com/):
```{r, eval = FALSE}
# install.packages("pak")
pak::pak("api2r/beekeeper")
```
:::
## Usage
Use `use_beekeeper()` to generate a `_beekeeper.yml` file, and then `generate_pkg()` to generate code based on that configuration.
Read `vignette("beekeeper")` for more details.
## The api2r package 'verse
- {beekeeper} (this package) is intended to help you rapidly create an R package that interfaces with a web API.
- [{nectar}](https://nectar.api2r.org) applies an opinionated framework around [{httr2}](https://httr2.r-lib.org/), aimed at making it easy to create standardized API-wrapping packages. Packages generated by {beekeeper} import functions from {nectar}, to avoid the relatively high dependency graph associated with {beeekeeper}.
- [{rapid}](https://rapid.api2r.org) converts OpenAPI descriptions of APIs to R objects. These objects are meant to provide a standardized starting point for {beekeeper} (and any future packages that generate R code from API specs, or, eventually, API specs from R code).
- [{anyapi}](https://anyapi.api2r.org) is intended to aid in the discovery of APIs. Eventually it may also auto-generate functions to interact with a newly discovered API, but that functionality is not yet implemented.
## Why "beekeeper"?
A beekeeper is someone who tends to bees, and {beekeeper} is a package that helps you tend to APIs.
"Apis" is Latin for "bee", and is the [genus name for honey bees](https://en.wikipedia.org/wiki/Honey_bee).
In addition to the pun, I hope to eventually include a "hive" of hex logos on this site, with each hex representing an API package that has been "tended" by {beekeeper}.
## Code of Conduct
Please note that the beekeeper project is released with a [Contributor Code of Conduct](https://beekeeper.api2r.org/CODE_OF_CONDUCT.html). By contributing to this project, you agree to abide by its terms.