Skip to content

Commit e1687b2

Browse files
committed
dsKeepAlive and dsIsCompleted added
1 parent 5d1a908 commit e1687b2

3 files changed

Lines changed: 26 additions & 1 deletion

File tree

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Authors@R:
1010
comment = c(ORCID = "0000-0003-0138-2023")))
1111
Depends:
1212
R (>= 3.5.0),
13-
DSI (>= 1.1),
13+
DSI (>= 1.2),
1414
methods,
1515
R6
1616
Suggests:

R/DSLiteConnection.R

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,17 @@ setMethod("dsConnect", "DSLiteDriver",
3939
con
4040
})
4141

42+
#' Keep connection with a DSLite server alive
43+
#'
44+
#' No operation due to the DSLiteServer nature.
45+
#'
46+
#' @param conn \code{\link{DSLiteConnection-class}} class object
47+
#'
48+
#' @import opalr
49+
#' @import methods
50+
#' @export
51+
setMethod("dsKeepAlive", "DSLiteConnection", function(conn) {})
52+
4253
#' Disconnect from a DSLite server
4354
#'
4455
#' Save the session in a local file if requested.

R/DSLiteResult.R

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,20 @@ setMethod("dsGetInfo", "DSLiteResult", function(dsObj, ...) {
2828
list(status=dsObj@rval$status)
2929
})
3030

31+
#' Get whether the operation is completed
32+
#'
33+
#' Always TRUE because of synchronous operations.
34+
#'
35+
#' @param res \code{\link{DSLiteResult-class}} object.
36+
#'
37+
#' @return Always TRUE.
38+
#'
39+
#' @import methods
40+
#' @export
41+
setMethod("dsIsCompleted", "DSLiteResult", function(res) {
42+
TRUE
43+
})
44+
3145
#' Fetch the result
3246
#'
3347
#' Fetch the DataSHIELD operation result.

0 commit comments

Comments
 (0)