This repository has been archived by the owner on Oct 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.Rmd
69 lines (50 loc) · 1.44 KB
/
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
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
---
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/README-",
out.width = "100%"
)
```
# starchart
<!-- badges: start -->
[![R-CMD-check](https://github.com/ropenscilabs/starchart/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/ropenscilabs/starchart/actions/workflows/R-CMD-check.yaml)
[![Codecov test coverage](https://codecov.io/gh/ropenscilabs/starchart/graph/badge.svg)](https://app.codecov.io/gh/ropenscilabs/starchart)
<!-- badges: end -->
The goal of starchart is to access the R-universe API.
## Installation
You can install the development version of starchart from [GitHub](https://github.com/) with:
``` r
# install.packages("pak")
pak::pak("ropenscilabs/starchart")
```
## Examples
### All packages in an universe
```{r example}
library(starchart)
universe_ls("jeroen")
```
### Info on all packages in an universe
```{r}
universe_packages("jeroen", limit = 1) |>
str(max.level = 2)
```
### Info on a single package in an universe
```{r}
universe_package("jeroen", package = "curl") |>
str(max.level = 1)
```
### Search within a single universe
```{r}
universe_search("ropensci", query = 'needs:httr2', limit = 1) |>
str(max.level = 2)
```
### Search among all universes
```{r}
global_search(query = '"weather data"', limit = 1) |>
str(max.level = 2)
```