Skip to content

Commit

Permalink
Merge pull request #43 from kadyb/main
Browse files Browse the repository at this point in the history
add CRAN badge to README
  • Loading branch information
coolbutuseless authored Apr 30, 2024
2 parents f18c086 + 45e108d commit 225d641
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
3 changes: 2 additions & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ if (FALSE) {

<!-- badges: start -->
![](https://img.shields.io/badge/cool-useless-green.svg)
[![CRAN](http://www.r-pkg.org/badges/version/yyjsonr)](https://cran.r-project.org/package=yyjsonr)
[![R-CMD-check](https://github.com/coolbutuseless/yyjsonr/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/coolbutuseless/yyjsonr/actions/workflows/R-CMD-check.yaml)
<!-- badges: end -->

Expand Down Expand Up @@ -121,7 +122,7 @@ You can install the latest development version from [GitHub](https://github.com/
remotes::install_github('coolbutuseless/yyjsonr')
```

Pre-built source/binary versions can also be installed from [r-universe](https://r-universe.dev)
Pre-built source/binary versions can also be installed from [R-universe](https://r-universe.dev)

``` r
install.packages('yyjsonr', repos = c('https://coolbutuseless.r-universe.dev', 'https://cloud.r-project.org'))
Expand Down
22 changes: 18 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ yyjsonr
<!-- badges: start -->

![](https://img.shields.io/badge/cool-useless-green.svg)
[![CRAN](http://www.r-pkg.org/badges/version/yyjsonr)](https://cran.r-project.org/package=yyjsonr)
[![R-CMD-check](https://github.com/coolbutuseless/yyjsonr/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/coolbutuseless/yyjsonr/actions/workflows/R-CMD-check.yaml)
<!-- badges: end -->

Expand All @@ -18,8 +19,8 @@ In most cases it is around 2x to 10x faster than `{jsonlite}` at both
reading and writing JSON.

It is a wrapper for the [`yyjson`](https://github.com/ibireme/yyjson) C
library (v0.8.0). `yysjon` is MIT licensed - see `LICENSE-yyjson.txt` in
this package for more details.
library (v0.9.0 April 8, 2024). `yysjon` is MIT licensed - see
`LICENSE-yyjson.txt` in this package for more details.

### What’s in the box

Expand Down Expand Up @@ -71,14 +72,27 @@ Note: Benchmarks were run on Apple M2 Mac. See files

## Installation

You can install from [GitHub](https://github.com/coolbutuseless/yyjsonr)
with:
This package can be installed from CRAN

``` r
install.packages('yyjsonr')
```

You can install the latest development version from
[GitHub](https://github.com/coolbutuseless/yyjsonr) with:

``` r
# install.package('remotes')
remotes::install_github('coolbutuseless/yyjsonr')
```

Pre-built source/binary versions can also be installed from
[R-universe](https://r-universe.dev)

``` r
install.packages('yyjsonr', repos = c('https://coolbutuseless.r-universe.dev', 'https://cloud.r-project.org'))
```

# Simple JSON example

``` r
Expand Down

0 comments on commit 225d641

Please sign in to comment.