
[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/rapidjsonr)](https://CRAN.R-project.org/package=rapidjsonr)
![downloads](http://cranlogs.r-pkg.org/badges/grand-total/rapidjsonr)
[![CRAN RStudio mirror downloads](http://cranlogs.r-pkg.org/badges/rapidjsonr)](https://CRAN.R-project.org/package=rapidjsonr)
[![Github Stars](https://img.shields.io/github/stars/SymbolixAU/rapidjsonr.svg?style=social&label=Github)](https://github.com/SymbolixAU/rapidjsonr)
[![Build Status](https://travis-ci.org/SymbolixAU/rapidjsonr.svg?branch=master)](https://app.travis-ci.com/SymbolixAU/rapidjsonr)
[![Coverage Status](https://codecov.io/github/SymbolixAU/rapidjsonr/coverage.svg?branch=master)](https://app.codecov.io/github/SymbolixAU/rapidjsonr?branch=master)

# rapidjsonr

R interface to the C++ header-only [Rapidjson](https://github.com/Tencent/rapidjson) library

This package is using v1.2-beta build of rapidjson. This is necessary to overcome `gcc` compiler warnings on CRAN, which are [fixed in this patch](https://github.com/Tencent/rapidjson/pull/1323)

<!-- git clone https://github.com/tencent/rapidjson --branch v1.1.0 --depth 1 -->
<!-- git clone https://github.com/tencent/rapidjson --branch master --depth 1 -->


## Install

From CRAN

```
install.packages("rapidjsonr")
```


Install the development version with

```
devtools::install_github("SymbolixAU/rapidjsonr")
```

## Using rapidjsonr


To use `rapidjsonr` in your own package, add a dependency to `rapidjsonr` to your cpp files **before** a call to `#include <Rcpp.h>`

```
// [[Rcpp::depends(rapidjsonr)]]

#include <Rcpp.h>
```

## License

This package is provided under the MIT license, as per Rapidjson itself. 

