R/datashield.list.R

Defines functions datashield.resources datashield.tables

Documented in datashield.resources datashield.tables

#' List of the tables
#'
#' Get the list of all the tables from the different data repositories.
#'
#' @param conns \code{\link{DSConnection-class}} object or a list of \code{\link{DSConnection-class}}s.
#' @return Table unique names from all the servers.
#' @examples
#' \dontrun{
#'   datashield.tables(conns)
#' }
#' @export
datashield.tables <- function(conns) {
  if (is.list(conns)) {
    lapply(conns, function(c) { dsListTables(c) })
  } else {
    dsListTables(conns)
  }
}

#' List of the resources
#'
#' Get the list of all the resources from the different data repositories.
#'
#' @param conns \code{\link{DSConnection-class}} object or a list of \code{\link{DSConnection-class}}s.
#' @return Resource unique names from all the servers.
#' @examples
#' \dontrun{
#'   datashield.resources(conns)
#' }
#' @export
datashield.resources <- function(conns) {
  if (is.list(conns)) {
    lapply(conns, function(c) { dsListResources(c) })
  } else {
    dsListResources(conns)
  }
}

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.