Skip to content

Commit 5bef61d

Browse files
committed
Various fixes including ds.colnames, datasources handling
1 parent 5ccfa5c commit 5bef61d

File tree

6 files changed

+22
-17
lines changed

6 files changed

+22
-17
lines changed

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
^docker-compose_opal\.yml$
1616
^docker-compose\.yml$
1717
^R/secure.global.ranking.md$
18+
^PULL_REQUEST_TEMPLATE\.md\.R$
1819
^_pkgdown\.yml$
1920
^docs$
2021
^dsBase_7.0.0\.tar\.gz$

DESCRIPTION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ Imports:
6969
gridExtra,
7070
data.table,
7171
methods,
72+
cli,
7273
dplyr
7374
Suggests:
7475
lme4,

NAMESPACE

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ export(ds.var)
119119
export(ds.vectorCalc)
120120
import(DSI)
121121
import(data.table)
122+
importFrom(DSI,datashield.connections_find)
123+
importFrom(cli,cli_abort)
122124
importFrom(stats,as.formula)
123125
importFrom(stats,na.omit)
124126
importFrom(stats,ts)

R/ds.colnames.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
#'
5252
ds.colnames <- function(x=NULL, datasources=NULL) {
5353

54-
.set_datasources(datasources)
54+
datasources <- .set_datasources(datasources)
5555
.check_df_name_provided(x)
5656

5757
cally <- call("colnamesDS", x)

man/ds.colnames.Rd

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/testthat/test-smk-ds.colnames.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ test_that("simple colnames", {
4747
test_that("fails if the object does not exist", {
4848
expect_error(
4949
ds.colnames("non_existing_df"),
50-
regexp = "object 'non_existing_df' not found",
50+
# regexp = "object 'non_existing_df' not found",
51+
regexp = "There are some DataSHIELD errors, list them with datashield.errors()",
5152
ignore.case = TRUE
5253
)
5354
})

0 commit comments

Comments
 (0)