R client library for Sentenai
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
R
man
tests
.Rbuildignore
.gitignore
.travis.yml
DESCRIPTION
NAMESPACE
README.md
sentenai.Rproj

README.md

r-sentenai

Build Status

R client library for Sentenai

Installation

> devtools::install_github('sentenai/r-sentenai')
* installing *source* packagesentenai...
** R
** tests
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
* DONE (sentenai)

Usage

> library(sentenai)
> sentenai <- sentenaiWithKey("<auth_key>")
> s <- stream("my-stream-name")

# Get stats about stream
> sentenai$get(s)

# Get all streams for account
> sentenai$streams()

# All fields in a stream
> sentenai$fields(s)

# Current values of all fields in a stream
> sentenai$values(s)

# Create filtered stream
> f <- stream("other-stream", V.foo == 'bar' && V.baz > 7)

# Query for spans
> sentenai$query(select()$span(s.temp > 32 && f.qux == FALSE))$spans()