redivis
package Redivis
The redivis package, available via library("redivis")
. Through its various methods, you can create, update, query, and read from resources on Redivis.
Methods
Construct a reference to the current notebook. Can only be called within a Redivis notebook.
redivis$file
(file_id)
Construct a new File instance.
redivis$make_api_request
([method, path, query, ...])
Call the Redivis API directly, for advanced use cases.
redivis$organization
(user_name)
Construct a new Organization instance.
redivis$query
(query_string)
Execute a SQL query, returning a Query instance.
redivis$table
(table_reference)
Construct a new Table instance. This method can only be called if default workflow / dataset is set (this is automatically set within a Redivis notebook to that notebook's workflow).
redivis$user
(user_name)
Construct a new User instance.
Examples
devtools::install_github("redivis/redivis-r")
library("redivis")
organization <- redivis$organization("Demo")
# organization$list_datasets(), organization$dataset("Iris species"), etc...
dataset <- organization$dataset("iris_species")
table <- dataset$table("iris")
# table$to_tibble(), etc...
# In a notebook, can do redivis$table("_source_") to reference the source table
query <- redivis$query("
SELECT *
FROM demo.iris_species.iris
WHERE SepalLengthCm > 5
")
# query$to_tibble(), etc...
Last updated
Was this helpful?