Querying on 'OData'

Make querying on 'OData' easier. It exposes an 'ODataQuery' object that can be manipulated and provides features such as selection, filtering and ordering.


ODataQuery

Query on R OData

This package aims to make OData services more accessible to R users.

Installation

install.packages("devtools")
devtools::install_github("https://github.com/lverweijen/ODataQuery")

Example usage

# Initialisation
url <- "https://services.odata.org/V4/TripPinServiceRW"
trip_service <- ODataQuery$new(url)
people_entity <- trip_service$path("People")

# Find all people whose name starts with an R
people_entity$
  select("UserName", "FirstName", "LastName")$
  filter(to_odata(startsWith(FirstName, "R")))$
  all()

# Find a person named Scott
people_entity$
  filter(to_odata(FirstName == "Scott"))$
  one()

# Find Scott's friends
people_entity$
  get("scottketchum")$
  path("Friends")$
  all()

See vignettes demo and querying for more examples.

Other R packages dealing with OData

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("ODataQuery")

0.5.3 by Laurent Verweijen, 5 years ago


Browse source code at https://github.com/cran/ODataQuery


Authors: Laurent Verweijen [aut, cre]


Documentation:   PDF Manual  


GPL-3 license


Imports R6, httr, jsonlite, rlang

Suggests knitr, rmarkdown, tinytest, utils


See at CRAN