R/datashield.symbol.R

Defines functions datashield.rm datashield.symbols

Documented in datashield.rm datashield.symbols

#' List R symbols
#'
#' Get the R symbols available after the datashield.assign calls in the Datashield R session.
#'
#' @param conns \code{\link{DSConnection-class}} object or a list of \code{\link{DSConnection-class}}s.
#'
#' @export
datashield.symbols <- function(conns) {
  if (is.list(conns)) {
    lapply(conns, FUN=datashield.symbols)
  } else {
    dsListSymbols(conns)
  }
}

#' Remove a R symbol
#'
#' Remove a symbol from the current Datashield session.
#'
#' @param conns \code{\link{DSConnection-class}} object or a list of \code{\link{DSConnection-class}}s.
#' @param symbol Name of the R symbol.
#' @export
datashield.rm <- function(conns, symbol) {
  if (is.list(conns)) {
    res <- lapply(conns, FUN=datashield.rm, symbol)
  } else {
    res <- dsRmSymbol(conns, symbol)
  }
}

Try the DSI package in your browser

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

DSI documentation built on Oct. 6, 2022, 9:06 a.m.