RcppRedis is a simple Redis client for R which uses Rcpp and hiredis, a minimalistic C client library for Redis.
This package os derived from an initial fork of an earlier attempt named 'rhiredis' by Wush Wu, and has since been extended. William Pleasant provided some early patches.
The package should install from source like any other R package provided the dependency on the hiredis library is met. pkg-config
is used to find the hiredis headers and library. All of Rcpp, RApiSerialized and RcppRedis can be installed from CRAN (which is recommended) or GitHub.
On OS X, the header file hiredis.h
has been seen to be installed directly in /usr/local/include
whereas we generally assume a location within a hiredis
directory, eg /usr/local/include/hiredis/hiredis.h
. This gist shows a successfull OS X installation via homebrew.
Run some of the scripts from the demo/ directory.