An open API service indexing awesome lists of open source software.

https://github.com/symbolixau/rapidjsonr

R package exposing the rapidjsonr c++ header-only library
https://github.com/symbolixau/rapidjsonr

json r rapidjson rstats

Last synced: 8 months ago
JSON representation

R package exposing the rapidjsonr c++ header-only library

Awesome Lists containing this project

README

          

[![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://travis-ci.org/SymbolixAU/rapidjsonr)
[![Coverage Status](https://codecov.io/github/SymbolixAU/rapidjsonr/coverage.svg?branch=master)](https://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)

## 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::depends(rapidjsonr)]]

#include
```

## License

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