Query on R OData
This package aims to make OData services more accessible to R users.
install.packages("devtools")
::install_github("https://github.com/lverweijen/ODataQuery") devtools
# Initialisation
<- "https://services.odata.org/V4/TripPinServiceRW"
url <- ODataQuery$new(url)
trip_service <- trip_service$path("People")
people_entity
# Find all people whose name starts with an R
$
people_entityselect("UserName", "FirstName", "LastName")$
filter(to_odata(startsWith(FirstName, "R")))$
all()
# Find a person named Scott
$
people_entityfilter(to_odata(FirstName == "Scott"))$
one()
# Find Scott's friends
$
people_entityget("scottketchum")$
path("Friends")$
all()
See vignettes demo and querying for more examples.