Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexcb/rjson
https://github.com/alexcb/rjson
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/alexcb/rjson
- Owner: alexcb
- Created: 2012-11-30T03:02:32.000Z (almost 12 years ago)
- Default Branch: main
- Last Pushed: 2024-09-16T17:39:28.000Z (2 months ago)
- Last Synced: 2024-10-14T18:53:25.612Z (about 1 month ago)
- Language: R
- Size: 138 KB
- Stars: 20
- Watchers: 5
- Forks: 12
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - alexcb/rjson - (R)
README
# rjson
A C based JSON parser for R.
Released versions can be found at http://cran.r-project.org/web/packages/rjson/index.htmlAlex Couture-Beil
[email protected]## Development notes
rjson uses [earthly](http://github.com/earthly/earthly) to containerize common development tasks.
### test
To run a comprehensive test, run:
earthly +test
This will run various sub-tests, against multiple versions of R.
### unit tests
To run the unit tests, run:
earthly +unittest
or against a particular version of R, e.g. 4.0.0:
earthly +unittest --R_VERSION=4.0.0
### rcheck
To run rcheck, run:
earthly +rcheck
### Packaging rjson for cran
To create a source `rjson_.tar.gz`, run:
earthly +cran
This will output a compressed source archive under `output/`.
#### Non-earthly tasks
To run R check with valgrind, in the past I have run:
docker run -v `pwd`:/foo -w /foo -ti -e VALGRIND_OPTS='--leak-check=full --show-reachable=yes' --rm --cap-add SYS_PTRACE rocker/r-devel-ubsan-clang R CMD check --use-valgrind rjson
(This should be moved into the Earthfile to make it easier to run).