R/getProblemIds.R

Defines functions getProblemIds

Documented in getProblemIds

#' @title Get ids of problems in registry.
#'
#' @description
#' Get problem ids for jobs.
#'
#' @param reg [\code{\link{ExperimentRegistry}}]\cr
#'   Registry.
#' @param ids [code{integer}]\cr
#'   Job ids to restrict returned problem ids to.
#' @return [\code{character}].
#' @family get
#' @export
getProblemIds = function(reg, ids) {
  checkExperimentRegistry(reg, strict = TRUE, writeable = FALSE)
  if (missing(ids))
    return(dbGetAllProblemIds(reg))
  checkIds(reg, ids)
  unique(dbGetProblemIds(reg, ids))
}
tudo-r/BatchExperiments documentation built on Dec. 1, 2017, 4:02 a.m.