R/OpalDriver.R

Defines functions Opal

Documented in Opal

#' Class OpalDriver with constructor Opal.
#'
#' An Opal driver implementing the DataSHIELD Interface (DSI) \code{\link[DSI]{DSDriver-class}}.
#' This class should always be initialized with the \code{\link{Opal}} function.
#' It returns a singleton that allows you to connect to Opal.
#' 
#' @import methods
#' @import DSI
#' @export
#' @keywords internal
setClass("OpalDriver", contains = "DSDriver")

#' Create a Opal driver
#' 
#' Convenient function for creating a OpalDriver object.
#' 
#' @import methods
#' @import DSI
#' @export
Opal <- function() {
  new("OpalDriver")
}

Try the DSOpal package in your browser

Any scripts or data that you put into this service are public.

DSOpal documentation built on Aug. 8, 2025, 6:21 p.m.