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))
}

Try the BatchExperiments package in your browser

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

BatchExperiments documentation built on Sept. 9, 2025, 5:24 p.m.