From 45e108d667828866f694493c81346ca5ed3f3f3b Mon Sep 17 00:00:00 2001 From: Krzysztof Dyba <35004826+kadyb@users.noreply.github.com> Date: Mon, 29 Apr 2024 12:44:00 +0200 Subject: [PATCH] add CRAN badge to README --- README.Rmd | 3 ++- README.md | 22 ++++++++++++++++++---- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/README.Rmd b/README.Rmd index 395bdce..faef515 100644 --- a/README.Rmd +++ b/README.Rmd @@ -46,6 +46,7 @@ if (FALSE) { ![](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) @@ -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')) diff --git a/README.md b/README.md index b53bc28..88e4054 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,7 @@ yyjsonr ![](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) @@ -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 @@ -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