Skip to content

Commit

Permalink
fix: export redivis object
Browse files Browse the repository at this point in the history
  • Loading branch information
imathews committed Jan 10, 2025
1 parent a35817c commit a5b198a
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 13 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: redivis
Type: Package
Title: R interface for Redivis
Version: 0.8.0
Version: 0.8.1
Author: Redivis Inc.
Maintainer: Redivis <[email protected]>
Description: Supports working with Redivis API through R.
Expand Down
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export(current_notebook)
export(file)
export(organization)
export(query)
export(redivis)
export(table)
export(user)
importFrom(stringr,str_interp)
2 changes: 1 addition & 1 deletion man/organization.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/query.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions man/redivis.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/table.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions man/user.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions tests/testthat/test-list-entities.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ test_that("dataset tables list", {
expect_equal(length(tables), 5)
})

test_that("project tables list", {
test_that("workflow tables list", {
user <- redivis::user("imathews")
tables = user$project('example_project_climate_analysis')$list_tables()
tables = user$workflow('example_project_climate_analysis')$list_tables()
expect_equal(length(tables), 2)
})

Expand All @@ -23,8 +23,8 @@ test_that("dataset get", {
expect_true(!is.null(dataset$properties))
})

test_that("project get", {
test_that("workflow get", {
user <- redivis::user("imathews")
project = user$project('example_project_climate_analysis')$get()
expect_true(!is.null(project$properties))
workflow = user$workflow('example_project_climate_analysis')$get()
expect_true(!is.null(workflow$properties))
})
2 changes: 1 addition & 1 deletion tests/testthat/test-query.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# })
#
# test_that("scoped querying works", {
# Sys.setenv(REDIVIS_DEFAULT_PROJECT="imathews.ghcn precipitation")
# Sys.setenv(REDIVIS_DEFAULT_WORKFLOW="imathews.ghcn precipitation")
# # query <- redivis::user('imathews')$project('ghcn_precipitation')$query("SELECT * FROM merge_output LIMIT 100")
# query <- redivis::query("SELECT * FROM merge_output LIMIT 100")
#
Expand Down

0 comments on commit a5b198a

Please sign in to comment.