R/get_assay_table.R

Defines functions get_assay_table

Documented in get_assay_table

#' @export
#' @rdname get_risk_values
get_assay_table <- function(GT) {
  con <- get_con(GT)
  on.exit(DBI::dbDisconnect(con))

  if (!DBI::dbExistsTable(con, "assay")) {
    stop("Assay table not found in database.", call. = FALSE)
  }

  dplyr::tbl(con, "assay") |> dplyr::collect()
}

Try the GeoTox package in your browser

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

GeoTox documentation built on May 20, 2026, 1:07 a.m.